/**
 * /acars file-based landing page (views/page/acars.tpl).
 * Palette ported from the next.phpvms.net/acars landing: primary is the
 * theme's --wstyle-primary, secondary/accent/purple/pricing values are the
 * vacentral landing tokens, which brut.css deliberately does not expose.
 */

.alp-hero,
.alp-marquee,
.alp-features,
.alp-customize,
.alp-datalink,
.alp-pricing {
    --alp-secondary: #fcba28;
    --alp-accent: #cde8f6;
    --alp-violet: #a855f7;
    --alp-sky: #38bdf8;
    --alp-purple: oklch(0.496 0.265 301.924);
    --alp-dark: #1a1a1a;
    --alp-red: #ff3333;
    --alp-cream: #f9f4da;
    --alp-dark-card: #232323;
    --alp-dark-muted: #a39d8b;
    --alp-primary-dark: #078bd4;
    border-bottom: 2px solid var(--wstyle-border-color);
}

.alp-h1,
.alp-h2,
.alp-stat-value,
.alp-feature-head,
.alp-cap h3,
.alp-price-tier,
.alp-price-amount {
    font-family: var(--brut-heading-font);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.alp-eyebrow {
    display: block;
    font-family: var(--bs-font-monospace, monospace);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

html:has(.alp-hero) { scroll-behavior: smooth; }

/* keeps the sticky header from covering the CTA scroll targets */
#features,
#pricing { scroll-margin-top: var(--wstyle-chrome-offset, 6.25rem); }

/* ---- hero (dark brutstack surface, like the source page) ---- */

.alp-hero {
    padding: 4.5rem 0 5rem;
    overflow: hidden;
    background: var(--alp-dark);
    color: var(--alp-cream);
    border-bottom-color: #000;
}

/* sits under the transparent overlay header, like the home hero; default.js sets the offset */
.chrome-overlay .alp-hero {
    margin-top: calc(-1 * var(--wstyle-chrome-offset, 6.25rem));
    padding-top: calc(var(--wstyle-chrome-offset, 6.25rem) + 3.5rem);
}

.alp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem 0.75rem;
    border: 2px solid #000;
    background: var(--alp-primary-dark);
    color: #fff;
    font-family: var(--brut-heading-font);
    font-size: 0.875rem;
    box-shadow: var(--brut-shadow-sm);
}

.alp-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #fff;
    animation: alp-pulse 1.6s ease-in-out infinite;
}

@keyframes alp-pulse {
    50% { opacity: 0.35; }
}

.alp-h1 {
    max-width: 14ch;
    color: #fff;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 0.95;
}

.alp-h1-accent { color: var(--alp-primary-dark); }

.alp-lead {
    margin-top: 1.5rem;
    max-width: 54ch;
    font-size: 1.125rem;
    color: var(--alp-dark-muted);
}

.alp-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.alp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.75rem;
    border: 2px solid #000;
    font-family: var(--brut-heading-font);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: var(--brut-shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.alp-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--brut-shadow-lg);
}

.alp-btn:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}

.alp-btn-primary { background: var(--wstyle-primary); color: #fff; }
.alp-btn-primary:hover { background: var(--brut-primary-hover); color: #fff; }
.alp-btn-ghost { background: var(--alp-dark-card); color: var(--alp-cream); }
.alp-btn-ghost:hover { color: var(--alp-cream); }
.alp-btn-cream { background: var(--alp-cream); color: var(--alp-dark); }
.alp-btn-cream:hover { background: #fff; color: var(--alp-dark); }

.alp-hero-logo {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    object-fit: contain;
}

.alp-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 3.5rem;
    border: 2px solid #000;
}

@media (min-width: 992px) {
    .alp-stats { grid-template-columns: repeat(4, 1fr); }
}

.alp-stat {
    padding: 1.5rem 1.25rem;
    background: var(--alp-dark-card);
}

.alp-stat:not(:last-child) { border-right: 2px solid #000; }

@media (max-width: 991.98px) {
    .alp-stat:nth-child(odd) { border-right: 2px solid #000; }
    .alp-stat:nth-child(even) { border-right: 0; }
    .alp-stat:nth-child(-n+2) { border-bottom: 2px solid #000; }
}

.alp-stat-value {
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--alp-primary-dark);
}

.alp-stat-label {
    margin-top: 0.5rem;
    font-family: var(--bs-font-monospace, monospace);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--alp-dark-muted);
}

/* ---- logo marquee ---- */

.alp-marquee {
    padding: 3rem 0;
    overflow: hidden;
    background: var(--alp-dark);
    border-bottom-color: #000;
}

.alp-marquee-title {
    margin-bottom: 2rem;
    text-align: center;
    font-family: var(--bs-font-monospace, monospace);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--alp-dark-muted);
}

.alp-marquee-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.alp-marquee-track {
    display: flex;
    width: max-content;
    animation: alp-scroll 50s linear infinite;
}

.alp-marquee-viewport:hover .alp-marquee-track { animation-play-state: paused; }

.alp-marquee-row {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding-right: 3.5rem;
}

.alp-marquee-row img {
    height: 44px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    /* white silhouettes on the dark surface, like the source page */
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.85;
    transition: filter 0.2s, opacity 0.2s;
}

/* easyjet's logo is a solid-fill wordmark that stays legible in color */
.alp-marquee-row img[src$='easyjet.com.svg'],
.alp-marquee-row img:hover {
    filter: none;
    opacity: 1;
}

@keyframes alp-scroll {
    to { transform: translateX(-50%); }
}

/* ---- features ---- */

.alp-features,
.alp-customize {
    padding: 4.5rem 0;
}

.alp-h2 {
    margin-top: 0.75rem;
    max-width: 20ch;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.02;
}

.alp-features .alp-eyebrow { color: #b58718; }

.alp-feature-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 2px solid var(--wstyle-border-color);
    background: var(--wstyle-surface-bg);
    box-shadow: var(--brut-shadow-md);
    transition: transform 0.2s;
}

.alp-feature-card:hover { transform: translateY(-4px); }

.alp-feature-head {
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid var(--wstyle-border-color);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
}

.alp-tone-primary { background: var(--wstyle-primary); color: #fff; }
.alp-tone-secondary { background: var(--alp-secondary); color: #1a1a1a; }
.alp-tone-accent { background: var(--alp-accent); color: #1a1a1a; }

.alp-feature-card p {
    margin: 0;
    padding: 1.25rem;
    color: var(--wstyle-muted-color);
}

/* ---- customize (purple) ---- */

.alp-customize {
    background: var(--alp-purple);
}

.alp-customize .alp-eyebrow { color: rgba(255, 255, 255, 0.75); }
.alp-customize .alp-h2 { color: #fff; max-width: none; }

.alp-cap {
    position: relative;
    z-index: 0;
    width: 100%;
    transition: transform 0.3s ease-out;
}

.alp-cap:hover { transform: translate(-6px, -6px); z-index: 10; }

.alp-cap-back,
.alp-cap-mid {
    position: absolute;
    inset: 0;
    border: 2px solid #000;
    transition: transform 0.3s ease-out;
    pointer-events: none;
}

.alp-cap-mid { background: var(--wstyle-border-color); z-index: 1; }

.alp-cap:hover .alp-cap-back { transform: translate(12px, 12px); }
.alp-cap:hover .alp-cap-mid { transform: translate(6px, 6px); }

.alp-cap-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 15rem;
    padding: 1.75rem;
    border: 2px solid #000;
    background: var(--wstyle-surface-bg);
}

.alp-cap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.75rem;
    border: 2px solid #000;
    color: #000;
    font-size: 1.5rem;
}

.alp-chip-primary { background: var(--wstyle-primary); }
.alp-cap-icon.alp-chip-primary { color: #fff; }
.alp-chip-accent { background: var(--alp-accent); }
.alp-chip-violet { background: var(--alp-violet); }
.alp-chip-sky { background: var(--alp-sky); }

.alp-cap h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.2;
}

.alp-cap p {
    margin: 0 0 0 0;
    margin-top: auto;
    color: var(--wstyle-muted-color);
}

/* ---- datalink (yellow) ---- */

.alp-datalink {
    padding: 5.5rem 0;
    background: var(--alp-secondary);
    color: #1a1a1a;
}

.alp-datalink-h2 {
    max-width: 25ch;
    margin: 0 auto;
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 0.95;
}

.alp-datalink-marks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 3.5rem auto 0;
    max-width: 640px;
}

.alp-datalink-marks img,
.alp-datalink-marks .bi {
    width: clamp(5rem, 10vw, 8rem);
    height: clamp(5rem, 10vw, 8rem);
    object-fit: contain;
    flex-shrink: 0;
}

.alp-datalink-marks .bi {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3.4rem, 7vw, 5.5rem);
}

.alp-datalink-line {
    flex: 1 1 2rem;
    height: 2px;
    background: rgba(26, 26, 26, 0.6);
}

.alp-datalink-copy {
    max-width: 54ch;
    margin: 2rem auto 0;
    font-size: 1.125rem;
    color: rgba(26, 26, 26, 0.75);
}

/* ---- pricing (dark) ---- */

.alp-pricing {
    padding: 4.5rem 0 5.5rem;
    background: var(--alp-dark);
    color: #fff;
}

.alp-pricing-badge {
    display: inline-flex;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #000;
    background: var(--alp-red);
    color: var(--alp-dark);
    font-family: var(--brut-heading-font);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--brut-shadow-sm);
}

.alp-pricing-h2 { max-width: none; color: #fff; }
.alp-pricing-accent { color: var(--alp-red); }

.alp-pricing-lead {
    max-width: 42rem;
    margin: 1rem auto 0;
    font-size: 1.125rem;
    color: #a3a3a3;
}

.alp-price {
    position: relative;
    width: 100%;
}

.alp-price-back {
    position: absolute;
    inset: 0;
    transform: translate(0.75rem, 0.75rem);
    border: 2px solid #000;
    background: var(--alp-cream);
}

.alp-price-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid #000;
    background: var(--alp-dark);
}

.alp-price-strip {
    border-bottom: 2px solid #000;
    padding: 0.5rem 1rem;
    background: var(--alp-cream);
}

.alp-price-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 2rem;
}

.alp-price-tier {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #fff;
}

.alp-price-sub {
    min-height: 3rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #a3a3a3;
}

.alp-price-tag {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}

.alp-price-amount {
    font-size: 3.75rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.alp-price-term {
    padding-bottom: 0.25rem;
    font-family: var(--bs-font-monospace, monospace);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a3a3a3;
}

.alp-price .alp-btn-cream { margin-top: 2rem; }

.alp-price-list {
    flex-grow: 1;
    margin: 2rem 0 0;
    padding: 1.75rem 0 0;
    border-top: 1px solid #404040;
    list-style: none;
}

.alp-price-list li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #d4d4d4;
}

.alp-price-list li::before {
    content: "\f26e"; /* bootstrap-icons check */
    font-family: bootstrap-icons;
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--alp-red);
}

/* ---- motion ---- */

@media (prefers-reduced-motion: reduce) {
    html:has(.alp-hero) { scroll-behavior: auto; }
    .alp-marquee-track { animation: none; }
    .alp-badge-dot { animation: none; }
    .alp-btn,
    .alp-feature-card,
    .alp-cap,
    .alp-cap-back,
    .alp-cap-mid { transition: none; }
}
