/* ═══════════════════════════════════════════
   DROPS Landing — Brutalist accordion
   ═══════════════════════════════════════════ */

/* 1. Font */
@font-face {
    font-family: 'Hanken Grotesk';
    src: url('../fonts/HankenGrotesk-Variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
}

/* 2. Tokens — moved to funnel.css :root (loads on every page, single source of truth) */

/* 3. Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 4. Base */
html {
    font-size: 3.4vw;
}

body {
    font-family: var(--font);
    font-weight: 700;
    background: var(--bg);
    color: var(--fg);
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 5. Layout */
.wrap {
    position: relative;
    z-index: 1;
    max-width: 50vw;
    margin: 0 auto;
    padding: 0 0.12em;
}

/* 6. Homepage logo — centered above accordion */
.home-logo {
    padding: 0.4em 0 0.6em;
}

.home-logo .wrap {
    display: flex;
    justify-content: center;
}

.home-logo .sign-badge {
    font-size: 0.55em;
}

/* Rain animation overlay — all sign badges */
.sign-badge {
    position: relative;
    isolation: isolate;
}

.rain-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    overflow: hidden;
}

.sign-badge > span {
    position: relative;
    z-index: 2;
}

/* 7. Header / Navigation */
.site-header {
    position: relative;
    z-index: 10;
}

.site-nav {
    display: none;
}

/* Desktop nav — hidden, replaced by fullscreen overlay */
.nav-desktop {
    display: none;
}

/* ═══════════════════════════════════════════
   Fullscreen nav overlay — works on ALL sizes
   ═══════════════════════════════════════════ */
.site-nav.is-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: wipeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wipeUp {
    from { clip-path: inset(100% 0 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

.site-nav.is-open .nav-mobile {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding: 2em;
}

/* Close button */
.nav-mobile-close {
    position: absolute;
    top: 0.8em;
    right: 1em;
    font-size: 1.5em;
    font-weight: 900;
    color: #000;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    z-index: 10;
    animation: spinIn 0.4s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes spinIn {
    from { transform: rotate(90deg) scale(0); opacity: 0; }
    to   { transform: rotate(0) scale(1); opacity: 1; }
}

/* SVG logo */
.nav-mobile-logo {
    margin-bottom: 1.2em;
    margin-top: 0.2em;
    animation: riseIn 0.4s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes riseIn {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Sign badge — NYC street-sign blade style
   Layers: outer frame (sign body) → white field → inset border → text
   Uses box-shadow stacking for the classic sign sandwich effect
   Dark mode auto-inverts via custom properties */
.sign-badge {
    --sign-frame: #111;
    --sign-field: #111;
    --sign-text: #fff;
    --sign-rule: #fff;

    display: inline-block;
    background: var(--sign-field);
    color: var(--sign-text);
    font-family: var(--font);
    font-weight: 900;
    font-size: 0.7em;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.28em 0.55em;
    position: relative;
    border-radius: 0.12em;
    line-height: 1;
    /* Box-shadow builds the sign blade:
       1) thick outer frame (the sign body/housing)
       2) subtle drop shadow for depth */
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.15);
}

/* Animated inner rule — draws on from left like the old design */
.sign-badge::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1.5px solid var(--sign-rule);
    border-radius: 0.06em;
    pointer-events: none;
    animation: drawBorder 0.4s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-color-scheme: dark) {
    .rain-layer {
        opacity: 0.85;
    }
}

@keyframes drawBorder {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

/* Menu links — big, stacked */
.nav-mobile-links {
    list-style: none;
    flex: 1;
}

.nav-mobile-links li {
    border-bottom: 2px solid #000;
    overflow: hidden;
}

.nav-mobile-links li:first-child {
    border-top: 2px solid #000;
}

.nav-mobile-links a {
    display: block;
    font-size: 1em;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    line-height: 1.3;
    padding: 0.08em 0;
    letter-spacing: -0.02em;
    transform: translateY(120%);
    animation: linkUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav-mobile-links li:nth-child(1) a { animation-delay: 0.10s; }
.nav-mobile-links li:nth-child(2) a { animation-delay: 0.16s; }
.nav-mobile-links li:nth-child(3) a { animation-delay: 0.22s; }
.nav-mobile-links li:nth-child(4) a { animation-delay: 0.28s; }
.nav-mobile-links li:nth-child(5) a { animation-delay: 0.34s; }

@keyframes linkUp {
    from { transform: translateY(120%) rotate(1.5deg); }
    to   { transform: translateY(0) rotate(0); }
}

.nav-mobile-links a:hover {
    color: rgba(0, 0, 0, 0.45);
}

.nav-mobile-links a:active {
    color: rgba(0, 0, 0, 0.4);
}

/* Scanline — sweeps up */
.site-nav.is-open::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1001;
    animation: scanUp 2s linear infinite;
    pointer-events: none;
}

@keyframes scanUp {
    from { bottom: -2px; }
    to   { bottom: 100vh; }
}

.nav-mobile {
    display: none;
}

/* 7. Toggle */
.list-toggle {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1em;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    z-index: 20;
    width: 1.2em;
    height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
}

/* 8. List Section — top padding so toggle doesn't overlap first row */
.list-section {
    position: relative;
    z-index: 1;
}

.list {
    padding-top: 0.1em;
}

/* 9. List items */
.list-item {
    display: block;
    color: var(--fg);
    padding: 0.1em 0;
}

/* 10. Accordion trigger */
.list-item-trigger {
    display: inline;
    cursor: pointer;
    user-select: none;
}

.list-item-title {
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-underline-offset: 0.06em;
    text-decoration-thickness: 1px;
}

.list-item.is-expanded .list-item-title {
    text-decoration-thickness: 2px;
}

.accordion-icon {
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
}

/* 11. Accordion panel */
.list-item-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.13s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 12. Panel content */
.panel-inner {
    padding: 0.06em 0 0.2em;
}

.panel-desc {
    font-size: 0.6em;
    font-weight: 700;
    line-height: 1.1;
    color: var(--fg);
}

/* 13. Panel CTA */
.panel-cta {
    display: inline-block;
    position: relative;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 0.55em 1.3em;
    border: 2px solid var(--fg);
    border-radius: 0.12em;
    color: var(--fg);
    background: transparent;
    overflow: hidden;
    margin-top: 0.12em;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

/* Slide-fill from left on hover */
.panel-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.panel-cta:hover {
    color: var(--bg);
}

.panel-cta:hover::before {
    transform: scaleX(1);
}

/* Active — snappy press feedback */
.panel-cta:active {
    transform: scale(0.97);
}

/* Focus — accessibility */
.panel-cta:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

/* Arrow icon — nudge on hover */
.panel-cta-arrow {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-left: 0.15em;
    vertical-align: middle;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel-cta:hover .panel-cta-arrow {
    transform: translateX(0.25em);
}

.panel-cta-secondary {
    display: block;
    font-size: 0.5em;
    font-weight: 700;
    margin-top: 0.4em;
    color: var(--fg);
}

.panel-cta-secondary:hover {
    color: rgba(0, 0, 0, 0.45);
}

/* ═══════════════════════════════════════════
   13b. Panel details — flattened content
   ═══════════════════════════════════════════ */
.panel-details {
    position: relative;
    margin-top: 0.1em;
    padding: 0.15em 0.25em 0.2em;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 14px;
    border: none;
    border-radius: 6px;
}

/* Airmail / par avion chevron border */
.panel-details::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 10px;
    background: repeating-linear-gradient(
        -45deg,
        #c00 0px, #c00 4px,
        #fff 4px, #fff 8px,
        #00c 8px, #00c 12px,
        #fff 12px, #fff 16px
    );
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 3px;
}

/* Rich text content */
.panel-richtext {
    font-size: 0.55em;
    font-weight: 700;
    line-height: 1.35;
    color: var(--fg);
    margin-bottom: 0.2em;
}

.panel-richtext p {
    margin-bottom: 0.5em;
}

.panel-richtext p:last-child {
    margin-bottom: 0;
}

/* Benefits list — label:value pairs */
.panel-benefits {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.benefit-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.18em 0;
    gap: 0.04em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.benefit-row:last-child {
    border-bottom: none;
}

.benefit-label {
    font-size: 0.42em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(0, 0, 0, 0.5);
}

.benefit-value {
    font-size: 0.55em;
    font-weight: 700;
    color: var(--fg);
    text-align: left;
}

/* Highlighted row — bold + blue underline accent */
.benefit-row.is-highlight .benefit-value {
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-underline-offset: 0.08em;
    text-decoration-thickness: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rain-layer {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════
   14. Mobile overrides
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    html {
        font-size: 8vw;
    .wrap { max-width: 100%; }
    }

    .site-nav.is-open .nav-mobile {
        padding: 6vw;
    }

    .nav-mobile-close {
        top: 4vw;
        right: 5vw;
        font-size: 10vw;
    }

    .nav-mobile-logo {
        margin-bottom: 6vw;
    }

    .nav-mobile-logo svg {
        width: 68vw;
        height: auto;
    }

    .nav-mobile-links a {
        font-size: 13vw;
        padding: 2.5vw 0;
    }

    .panel-desc { font-size: 0.675em; }
    .panel-cta { font-size: 0.7em; padding: 0.5em 1.1em; }
    .panel-cta-secondary { font-size: 0.45em; }

    /* Panel details mobile */
    .panel-details {
        padding: 0.15em 0.25em 0.2em;
        margin: 10px 10px 14px;
    }
    .panel-richtext { font-size: 0.48em; line-height: 1.35; margin-bottom: 0.2em; }
    .benefit-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.18em 0;
        min-height: unset;
        gap: 0.04em;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    .benefit-row:last-child { border-bottom: none; }
    .benefit-label { font-size: 0.38em; letter-spacing: 0.06em; color: rgba(0, 0, 0, 0.5); }
    .benefit-value { font-size: 0.48em; text-align: left; margin-left: 0; }
}
