/* ============================================
   iPhone Mockup — Tools Tab Replica
   ============================================ */

.mockup-section {
    padding: 100px 0;
    background: var(--bg-warm);
}

.mockup-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
}

.mockup-text {
    max-width: 400px;
    padding-top: 60px;
}

.mockup-text h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.mockup-text > p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.mockup-hint {
    font-size: 13px;
    color: var(--pink);
    font-weight: 600;
}

/* Phone shell */
.iphone-mockup {
    width: 340px;
    flex-shrink: 0;
    background: #1A1A2E;
    border-radius: 52px;
    padding: 10px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}

.iphone-screen {
    width: 100%;
    border-radius: 44px;
    overflow: hidden;
    background: #F8F7F5;
    position: relative;
    text-align: left;
    /* Aspect ratio ~19.5:9 for iPhone 17 Pro Max */
    aspect-ratio: 320 / 694;
}

/* Status bar — Dynamic Island only */
.mockup-statusbar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 0 0;
    height: 44px;
    position: relative;
    z-index: 5;
}

.statusbar-island {
    width: 90px;
    height: 26px;
    background: #1A1A2E;
    border-radius: 20px;
}

/* Tab bar — image-based, floating pill like real iOS */
.mockup-tabbar-img {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 88%;
}

.mockup-tabbar-img img {
    width: 100%;
    display: block;
}

/* Image-based tool cards */
.tc-hero {
    width: 100%;
    border-radius: 14px;
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    transition: transform 0.15s;
}
.tc-hero:hover { transform: scale(1.02); }
.tc-no-click { cursor: default; }
.tc-no-click:hover { transform: none; }

.tc-babyfun {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}
.tc-babyfun .tc-tall {
    flex: 1;
    min-width: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.15s;
}
.tc-babyfun .tc-tall:hover { transform: scale(1.02); }
.tc-babyfun .tc-rcol {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tc-babyfun .tc-rcol img {
    width: 100%;
    border-radius: 14px;
    display: block;
    cursor: pointer;
    transition: transform 0.15s;
}
.tc-babyfun .tc-rcol img:hover { transform: scale(1.02); }

.tc-hscroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: 4px;
}
.tc-hscroll::-webkit-scrollbar { display: none; }

.tc-sq {
    width: 31%;
    flex-shrink: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.15s;
}
.tc-sq:hover { transform: scale(1.03); }

.tc-prep {
    width: 28%;
    flex-shrink: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.15s;
}
.tc-prep:hover { transform: scale(1.03); }

.tc-prep-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}
.tc-prep-row img {
    flex: 1;
    min-width: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.15s;
}
.tc-prep-row img:hover { transform: scale(1.02); }

.tc-health {
    width: 31%;
    flex-shrink: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.15s;
}
.tc-health:hover { transform: scale(1.03); }

.tc-pair {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.tc-pair img {
    flex: 1;
    min-width: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.15s;
}
.tc-pair img:hover { transform: scale(1.02); }

/* Scrollable tools content */
.mockup-scroll {
    height: calc(100% - 44px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 16px 80px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    text-align: left;
}

.mockup-scroll::-webkit-scrollbar { display: none; }


/* ---- Tools tab content ---- */

.tools-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1A1A2E;
}

/* Section headers */
.t-section {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9CA3AF;
    margin: 18px 0 8px;
}

/* AI / Academy hero cards */
.t-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.t-hero:hover { transform: scale(1.02); }

.t-hero-emoji { font-size: 24px; flex-shrink: 0; }
.t-hero h4 { font-size: 14px; font-weight: 800; color: white; margin-bottom: 2px; }
.t-hero p { font-size: 10px; color: rgba(255,255,255,0.8); line-height: 1.4; }

/* Baby & Fun — asymmetric grid */
.t-babyfun {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.t-names-card {
    flex: 1;
    min-height: 140px;
    border-radius: 18px;
    padding: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.t-names-card:hover { transform: scale(1.02); }

.t-names-card .t-big-emoji {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 55px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.t-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t-small-card {
    border-radius: 18px;
    padding: 12px;
    flex: 1;
    cursor: pointer;
    transition: transform 0.2s;
}

.t-small-card:hover { transform: scale(1.02); }

.t-small-card h4 { font-size: 11px; font-weight: 800; color: #1A1A2E; margin-top: 4px; }
.t-small-card p { font-size: 9px; color: #6B7280; }

/* Horizontal scrolling cards */
.t-hscroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.t-hscroll::-webkit-scrollbar { display: none; }

.t-action-card {
    width: 100px;
    min-height: 100px;
    flex-shrink: 0;
    border-radius: 16px;
    padding: 10px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.t-action-card:hover { transform: scale(1.03); }

.t-action-card .t-bubble {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.t-action-card .t-emoji { font-size: 22px; }
.t-action-card h4 { font-size: 10px; font-weight: 800; margin-top: 6px; }
.t-action-card p { font-size: 8px; opacity: 0.75; margin-top: 2px; }

/* Getting Ready progress cards */
.t-prep-card {
    width: 100px;
    min-height: 120px;
    flex-shrink: 0;
    border-radius: 16px;
    padding: 10px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.t-prep-card:hover { transform: scale(1.03); }

.t-prep-card .t-bubble {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.t-prep-card .t-emoji { font-size: 22px; }
.t-prep-card h4 { font-size: 10px; font-weight: 800; margin-top: 6px; }
.t-prep-card p { font-size: 8px; opacity: 0.75; margin-top: 2px; }

.t-prep-bar {
    margin-top: auto;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.t-prep-bar-fill {
    height: 100%;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
}

/* Keepsakes section */
.t-keepsake-hero {
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: white;
    margin-bottom: 8px;
    transition: transform 0.2s;
}

.t-keepsake-hero:hover { transform: scale(1.02); }

.t-keepsake-hero h4 { font-size: 14px; font-weight: 800; }
.t-keepsake-hero p { font-size: 10px; opacity: 0.8; }

.t-keepsake-row {
    display: flex;
    gap: 8px;
}

.t-keepsake-card {
    flex: 1;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border: 1px solid;
    transition: transform 0.2s;
}

.t-keepsake-card:hover { transform: scale(1.03); }

.t-keepsake-card .t-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0 auto 6px;
}

.t-keepsake-card h4 { font-size: 10px; font-weight: 800; color: #1A1A2E; }
.t-keepsake-card .t-keepsake-label { font-size: 9px; font-weight: 700; margin-top: 3px; }

/* Readiness banner */
.t-readiness {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 8px;
}

.t-readiness-label { font-size: 9px; font-weight: 800; letter-spacing: 0.04em; }
.t-readiness-sub { font-size: 9px; color: #6B7280; }
.t-readiness-pct { font-size: 18px; font-weight: 900; }

/* Nutrition hero */
.t-nutrition {
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.t-nutrition:hover { transform: scale(1.02); }

.t-nutrition-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.t-nutrition h4 { font-size: 14px; font-weight: 800; }
.t-nutrition p { font-size: 10px; opacity: 0.8; }

/* Budget hero */
.t-budget {
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.t-budget:hover { transform: scale(1.02); }

.t-budget h4 { font-size: 14px; font-weight: 800; }
.t-budget p { font-size: 10px; opacity: 0.8; }

/* Story hero */
.t-story {
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.t-story:hover { transform: scale(1.02); }

.t-story h4 { font-size: 14px; font-weight: 800; }
.t-story p { font-size: 10px; opacity: 0.8; }

/* Feature view (inside phone) */
.mockup-feature {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    z-index: 4;
}

.mockup-feature.active { display: flex; }
.mockup-feature.active ~ .mockup-tabbar-img { display: none; }

.mockup-back-btn {
    position: absolute;
    /* Invisible click target over the native back button in screenshot */
    top: 5%;
    left: 0;
    width: 15%;
    height: 8%;
    z-index: 10;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mockup-back-btn img {
    display: none;
}

.mockup-feature-scroll {
    flex: 1;
    overflow: hidden;
}

.mockup-feature-scroll img {
    width: 100%;
    display: block;
}

.mockup-tools { height: 100%; }
.mockup-tools.hidden { display: none; }

/* Pill badge */
.t-pill {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .mockup-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mockup-text { padding-top: 0; }

    /* Scale phone to fit viewport while keeping proportions */
    .iphone-mockup { width: min(340px, calc(100vw - 48px)); }
}

@media (max-width: 380px) {
    .iphone-mockup { width: calc(100vw - 32px); }
}
