/* ====================================
   이루미 Landing Page
   ==================================== */

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

/* --- Design Tokens --- */
:root {
    --font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
        system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo',
        'Noto Sans KR', 'Malgun Gothic', sans-serif;

    /* Colors */
    --bg-default-higher: #F4ECDD;
    --bg-default-high: #E8DEC8;
    --bg-default-sky: #FFFFFF;
    --bg-default-ground: #332C21;
    --bg-neutral-primary: #000000;
    --bg-accent-secondary: #FFB561;
    --bg-surface-cream: #FCF8F0;

    --orange-300: #FFB561;
    --orange-400: #FA932F;
    --orange-700: #8F3A00;

    --green-700: #326D00;

    --text-primary: #332C21;
    --text-secondary: #6B5D4D;
    --text-tertiary: #92846D;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* --- Base --- */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    height: 100dvh;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--bg-default-higher);
    line-height: 1.6;
    width: 100dvw;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* =======================================
   HERO SECTION
   ======================================= */
.hero {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 24px;
    height: 100dvh;
    width: 100dvw;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Left Panel --- */
.hero__left {
    flex: 1 1 0;
    background: var(--bg-accent-secondary);
    border-radius: 40px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    overflow: hidden;
}

/* Navigation */
.hero__nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero__logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.hero__nav-pills {
    display: flex;
    align-items: center;
    background: var(--orange-400);
    border-radius: 9999px;
    padding: 4px;
}

.hero__nav-pill {
    height: 40px;
    padding: 8px 12px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--orange-700);
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.hero__nav-pill:hover {
    opacity: 0.8;
}

.hero__nav-pill--active {
    background: var(--orange-300);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 16px;
}

/* Center Content */
.hero__center {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.hero__branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    align-self: stretch;
}

.hero__wordmark {
    height: 90px;
    width: auto;
}

.hero__tagline {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: var(--text-primary);
}

/* Download Buttons */
.hero__downloads {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
}

.hero__download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-default-higher);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: transform var(--transition-fast), box-shadow var(--transition-normal);
    cursor: pointer;
}

.hero__download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero__download-btn:active {
    transform: translateY(0);
}

.hero__download-btn img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* =======================================
   RIGHT PANEL — Carousel
   ======================================= */
.hero__right {
    flex: 1 1 0;
    background: var(--bg-surface-cream);
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.carousel {
    flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel:active {
    cursor: grabbing;
}

/* --- Track: slides with visual+text together --- */
.carousel__track {
    display: flex;
    align-self: stretch;
    background: transparent;
    touch-action: pan-y pinch-zoom;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: stretch;
}

/* --- Slide Content: Figma gap:32 (visual ↔ text) --- */
.slide__content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

/* --- Slide Visual Area: fixed 530px, centered content --- */
.slide__visual-area {
    align-self: stretch;
    height: 530px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slide__image {
    align-self: stretch;
    height: 530px;
    object-fit: contain;
}

/* --- Slide Text (Figma gap:6) --- */
.slide__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 370px;
}

.slide__title {
    text-align: center;
    font-size: 23px;
    font-weight: 700;
    line-height: 28px;
    color: var(--text-primary);
}

.slide__subtitle {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-tertiary);
}

/* --- Pagination (inside each slide, Figma p:16 bottom+sides) --- */
.carousel__pagination {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px 32px 32px;
}

.carousel__dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: var(--bg-default-high);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.carousel__dot--active {
    width: 16px;
    background: var(--bg-default-ground);
}

/* =======================================
   SLIDE 2: SelfName Hero (dual-column scroll)
   Matches NameBuilderScreen.tsx exactly, scaled 1.3×
   Base: cell=50, gap=4, row=54, visible=5, container=270
   1.3×: cell=65, gap=5, row=70, container=350
   ======================================= */
.selfname-hero {
    position: relative;
    width: 174px;
    height: 350px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.selfname-hero__highlight {
    position: absolute;
    /* Adjust highlight down to align with center cell */
    top: calc(50% + 10px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 174px;
    /* (37+74+20)×1.3 ≈ 170, rounded */
    height: 70px;
    border-radius: 21px;
    /* 16×1.3 */
    background: #B5EC73;
    z-index: 0;
}

.selfname-hero__columns {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.selfname-hero__column {
    height: 100%;
    overflow: hidden;
}

.selfname-hero__track {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Timing: STEP_DURATION=600ms, STEP_DELAY=2000ms (first=500ms), Total=13500ms */
.selfname-hero__track--down {
    animation: selfnameDown 13.5s linear infinite;
}

.selfname-hero__track--up {
    animation: selfnameUp 13.5s linear infinite;
}

.selfname-hero__cell {
    height: 65px;
    /* 50×1.3 */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.selfname-hero__cell--surname {
    width: 48px;
    /* 37×1.3 ≈ 48 */
}

.selfname-hero__cell--surname img {
    width: 48px;
    height: 65px;
    object-fit: contain;
}

.selfname-hero__cell--name {
    width: 96px;
    /* 74×1.3 ≈ 96 */
}

.selfname-hero__cell--name img {
    width: 96px;
    height: 65px;
    object-fit: contain;
}

/* 70px per row (65+5), DOWN: -350→-280→-210→-140→-70→0→reset */
@keyframes selfnameDown {
    0% {
        transform: translateY(-350px);
        animation-timing-function: linear;
    }

    3.7% {
        transform: translateY(-350px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    8.1% {
        transform: translateY(-280px);
        animation-timing-function: linear;
    }

    22.9% {
        transform: translateY(-280px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    27.4% {
        transform: translateY(-210px);
        animation-timing-function: linear;
    }

    42.2% {
        transform: translateY(-210px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    46.7% {
        transform: translateY(-140px);
        animation-timing-function: linear;
    }

    61.5% {
        transform: translateY(-140px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    65.9% {
        transform: translateY(-70px);
        animation-timing-function: linear;
    }

    80.7% {
        transform: translateY(-70px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    85.2% {
        transform: translateY(0px);
        animation-timing-function: linear;
    }

    99.99% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-350px);
    }
}

/* UP: 0→-70→-140→-210→-280→-350→reset */
@keyframes selfnameUp {
    0% {
        transform: translateY(0px);
        animation-timing-function: linear;
    }

    3.7% {
        transform: translateY(0px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    8.1% {
        transform: translateY(-70px);
        animation-timing-function: linear;
    }

    22.9% {
        transform: translateY(-70px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    27.4% {
        transform: translateY(-140px);
        animation-timing-function: linear;
    }

    42.2% {
        transform: translateY(-140px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    46.7% {
        transform: translateY(-210px);
        animation-timing-function: linear;
    }

    61.5% {
        transform: translateY(-210px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    65.9% {
        transform: translateY(-280px);
        animation-timing-function: linear;
    }

    80.7% {
        transform: translateY(-280px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    85.2% {
        transform: translateY(-350px);
        animation-timing-function: linear;
    }

    99.99% {
        transform: translateY(-350px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =======================================
   SLIDE 3: Guide Hero (AppGuideHeroAnimation)
   Matches AppGuideHeroAnimation.tsx exactly, scaled 1.5×
   Base: container 174×192, box 161×180
   1.5×: container 261×288, box 242×270
   ======================================= */
.guide-hero {
    position: relative;
    width: 261px;
    height: 288px;
}

.guide-hero__card {
    position: absolute;
    left: 0;
    top: 0;
    width: 242px;
    /* 161 × 1.5 */
    height: 270px;
    /* 180 × 1.5 */
    background: #D280FF;
    border-radius: 23px;
    /* 15.4 × 1.5 */
}

.guide-hero__title {
    position: absolute;
    left: 21px;
    /* 14 × 1.5 */
    top: 32px;
    font-size: 27px;
    font-weight: 700;
    color: #F2D7FF;
}

.guide-hero__ai-badge {
    position: absolute;
    right: 21px;
    top: 32px;
    padding: 6px 14px;
    background: #E8B8FF;
    border-radius: 17px;
    /* 11.39 × 1.5 */
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

/* Bars: phase-based width animation, cycle=3525ms */
.guide-hero__bar {
    position: absolute;
    left: 21px;
    /* 14 × 1.5 */
    height: 21px;
    /* 14 × 1.5 */
    background: #E8B8FF;
    border-radius: 8px;
    /* 5.14 × 1.5 */
}

.guide-hero__bar--1 {
    top: 110px;
    /* 73 × 1.5 */
    width: 183px;
    /* 122 × 1.5 */
    animation: barPulse1 3.525s linear infinite;
}

.guide-hero__bar--2 {
    top: 143px;
    /* 95 × 1.5 */
    width: 137px;
    /* 91 × 1.5 */
    animation: barPulse2 3.525s linear infinite;
}

.guide-hero__bar--3 {
    top: 176px;
    /* 117 × 1.5 */
    width: 156px;
    /* 104 × 1.5 */
    animation: barPulse3 3.525s linear infinite;
}

.guide-hero__bar--4 {
    top: 209px;
    /* 139 × 1.5 */
    width: 105px;
    /* 70 × 1.5 */
    animation: barPulse4 3.525s linear infinite;
}

/* Bar 1: startExpand=false → [183, 150, 203, 183] (base×1.5) */
@keyframes barPulse1 {
    0% {
        width: 183px;
        animation-timing-function: cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    22.7% {
        width: 150px;
        animation-timing-function: linear;
    }

    33.3% {
        width: 150px;
        animation-timing-function: cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    56% {
        width: 203px;
        animation-timing-function: linear;
    }

    66.7% {
        width: 203px;
        animation-timing-function: cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    89.4% {
        width: 183px;
        animation-timing-function: linear;
    }

    99.99% {
        width: 183px;
    }

    100% {
        width: 183px;
    }
}

/* Bar 2: startExpand=true → [137, 158, 113, 137] */
@keyframes barPulse2 {
    0% {
        width: 137px;
        animation-timing-function: cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    22.7% {
        width: 158px;
        animation-timing-function: linear;
    }

    33.3% {
        width: 158px;
        animation-timing-function: cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    56% {
        width: 113px;
        animation-timing-function: linear;
    }

    66.7% {
        width: 113px;
        animation-timing-function: cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    89.4% {
        width: 137px;
        animation-timing-function: linear;
    }

    99.99% {
        width: 137px;
    }

    100% {
        width: 137px;
    }
}

/* Bar 3: startExpand=false → [156, 128, 180, 156] */
@keyframes barPulse3 {
    0% {
        width: 156px;
        animation-timing-function: cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    22.7% {
        width: 128px;
        animation-timing-function: linear;
    }

    33.3% {
        width: 128px;
        animation-timing-function: cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    56% {
        width: 180px;
        animation-timing-function: linear;
    }

    66.7% {
        width: 180px;
        animation-timing-function: cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    89.4% {
        width: 156px;
        animation-timing-function: linear;
    }

    99.99% {
        width: 156px;
    }

    100% {
        width: 156px;
    }
}

/* Bar 4: startExpand=true → [105, 123, 83, 105] */
@keyframes barPulse4 {
    0% {
        width: 105px;
        animation-timing-function: cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    22.7% {
        width: 123px;
        animation-timing-function: linear;
    }

    33.3% {
        width: 123px;
        animation-timing-function: cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    56% {
        width: 83px;
        animation-timing-function: linear;
    }

    66.7% {
        width: 83px;
        animation-timing-function: cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    89.4% {
        width: 105px;
        animation-timing-function: linear;
    }

    99.99% {
        width: 105px;
    }

    100% {
        width: 105px;
    }
}

/* Check circle: 44×44 → 66×66 at 1.5x */
.guide-hero__check {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 66px;
    /* 44 × 1.5 */
    height: 66px;
    border-radius: 50%;
    background: var(--bg-surface-cream);
    display: flex;
    justify-content: center;
    align-items: center;
}

.guide-hero__check svg {
    width: 60px;
    /* 40 × 1.5 */
    height: 60px;
}

/* Checkmark: 3600ms cycle (600ms draw + 2000ms hold + 400ms fade + 600ms pause) */
.guide-hero__checkmark {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: checkDraw 3.6s linear infinite;
}

@keyframes checkDraw {
    0% {
        stroke-dashoffset: 40;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }

    16.7% {
        stroke-dashoffset: 0;
        animation-timing-function: linear;
    }

    72.2% {
        stroke-dashoffset: 0;
        animation-timing-function: ease-in;
    }

    83.3% {
        stroke-dashoffset: 40;
        animation-timing-function: linear;
    }

    100% {
        stroke-dashoffset: 40;
    }
}


/* =======================================
   POLICY / TERMS CONTENT PAGES
   ======================================= */
.policy-content {
    flex: 1;
    align-self: stretch;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.policy-content__title {
    font-size: 23px;
    font-weight: 700;
    line-height: 28px;
    color: var(--text-primary);
}

.policy-content__body {
    flex: 1 1 0;
    overflow-y: auto;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-tertiary);
    scrollbar-width: none;
}

.policy-content__body::-webkit-scrollbar {
    display: none;
}

.policy-content__body p {
    margin-bottom: 16px;
}

/* =======================================
   CONTACT PAGE
   ======================================= */
.contact {
    flex: 1;
    align-self: stretch;
    padding: 32px;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 48px;
}

.contact::-webkit-scrollbar {
    display: none;
}

.contact__form-area {
    flex: 1 1 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
}

.contact__header {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 42px;
    color: var(--text-primary);
}

.contact__subtitle {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-tertiary);
}

.contact__row {
    align-self: stretch;
    display: flex;
    gap: 16px;
}

.contact__field {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact__field--full {
    flex: 1 1 0;
}

.contact__label {
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    color: var(--text-primary);
}

.contact__input-wrap {
    align-self: stretch;
    background: var(--bg-default-higher);
    border-radius: 9999px;
}

.contact__input {
    width: 100%;
    height: 52px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    color: var(--text-primary);
}

.contact__input::placeholder {
    color: var(--text-tertiary);
}

.contact__textarea-wrap {
    align-self: stretch;
    background: var(--bg-default-higher);
    border-radius: 16px;
}

.contact__textarea {
    width: 100%;
    height: 160px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    color: var(--text-primary);
}

.contact__textarea::placeholder {
    color: var(--text-tertiary);
}

.contact__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.contact__checkbox-input {
    display: none;
}

.contact__checkbox-icon {
    flex-shrink: 0;
}

.contact__checkbox-input:checked+.contact__checkbox-icon circle {
    fill: var(--text-primary, #332C21);
}

.contact__checkbox-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-tertiary);
}

.contact__submit {
    align-self: stretch;
    height: 56px;
    padding: 12px 20px;
    background: var(--bg-accent-primary, #8CCAE7);
    border: none;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    color: var(--text-primary);
    cursor: pointer;
    transition: opacity var(--transition-normal);
}

.contact__submit:hover {
    opacity: 0.85;
}

.contact__submit:disabled {
    background: #C9E8F7;
    color: #8CCAE7;
    cursor: not-allowed;
    opacity: 1;
}

.contact__footer {
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    line-height: 13px;
    color: var(--text-tertiary);
}

/* =======================================
   HAMBURGER (hidden on desktop)
   ======================================= */
.hero__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    -webkit-appearance: none;
    appearance: none;
}

.hero__hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    margin-bottom: 5px;
    background-color: #332C21;
    border-radius: 9999px;
}

.hero__hamburger span:last-child {
    margin-bottom: 0;
}

/* Hamburger Dropdown (hidden on desktop) */
.hero__dropdown {
    display: flex;
    flex-direction: column;
    width: 200px;
    padding: 16px;
    background: var(--bg-accent-secondary, #FFB561);
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.hero__dropdown--open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero__dropdown-item {
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 23px;
}

.hero__dropdown-item:hover {
    opacity: 0.7;
}

/* Store buttons at card level (hidden on desktop) */
.carousel__store-buttons {
    display: none;
}

/* =======================================
   RESPONSIVE
   ======================================= */

/* Tablet (≤1024px) — Figma tablet layout */
@media (max-width: 1024px) {

    /* Hero: vertical column, full viewport height */
    .hero {
        flex-direction: column;
        height: 100dvh;
        padding: 16px;
        gap: 16px;
    }

    /* Left panel → thin nav bar only (no flex-grow) */
    .hero__left {
        flex: 0 0 auto;
        min-height: 0;
        padding: 0 16px;
        background: none;
        border-radius: 0;
        gap: 0;
        overflow: visible;
        position: relative;
    }

    /* Show hamburger, hide nav pills */
    .hero__hamburger {
        display: block;
    }

    .hero__hamburger span {
        height: 3px;
    }

    .hero__nav-pills {
        display: none;
    }

    /* Nav bar layout */
    .hero__nav {
        justify-content: space-between;
        position: relative;
    }

    /* Hide branding and desktop download buttons */
    .hero__center {
        display: none;
    }

    /* Right panel: card with padding + store buttons */
    .hero__right {
        flex: 1 1 0;
        min-height: 0;
        border-radius: 40px;
        padding: 32px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
    }

    /* Carousel fills the card inner area */
    .carousel {
        flex: 1 1 0;
        border-radius: 0;
    }

    /* Show tablet store buttons */
    .carousel__store-buttons {
        display: flex;
        align-self: stretch;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    /* Policy pages: card already has padding, remove inner padding */
    .policy-content {
        padding: 0;
    }

    /* Contact page: card already has padding */
    .contact {
        padding: 0;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {

    /* Outer spacing */
    .hero {
        padding: 16px;
        gap: 24px;
    }

    /* Card: tighter padding on mobile */
    .hero__right {
        padding: 24px 16px;
        border-radius: 40px;
    }

    /* Carousel inner: no extra padding, tighter gap */
    .carousel {
        padding: 0;
        gap: 32px;
    }

    .slide__content {
        padding: 0;
    }

    .carousel__pagination {
        padding: 0 16px 16px 16px;
    }

    /* Smaller visual area on mobile */
    .slide__visual-area {
        height: 251px;
    }

    /* Scale down hero image */
    .slide__image {
        height: 251px;
    }

    /* Reset slide 2 & 3 animations to 1.0x scale */
    /* zoom changes actual layout box size (unlike transform: scale) → flexbox centering works correctly */
    .selfname-hero {
        zoom: 0.769;
    }

    .guide-hero {
        zoom: 0.667;
    }

    /* Policy pages: smaller title on mobile */
    .policy-content__title {
        font-size: 20px;
        line-height: 26px;
    }

    /* Contact page: mobile overrides */
    .contact__title {
        font-size: 20px;
        line-height: 26px;
    }

    .contact__row {
        gap: 8px;
    }

    .contact__submit {
        height: 56px;
        font-weight: 600;
    }
}