/* ==========================================================================
   TAICO APP MASTER DESIGN ENGINE - WARM EARTH & CREAMSICLE SYSTEM
   ========================================================================== */

:root {
    --app-bg: #FFFFFF;              /* Primarily white crisp background */
    --app-surface: #FFF7F2;         /* Soft, ultra-light warm orange/cream tint */
    --app-surface-card: #FBEFE6;    /* Darker cream tier for nested layout elements */
    --app-text: #2C1810;            /* Rich dark brown text for premium contrast */
    --app-text-muted: #6B5950;      /* Muted brown for subheaders and captions */
    --app-brand: #FF6B35;           /* Vibrant primary orange element accent */
    --app-brand-hover: #E04E1B;     /* Deeper pumpkin orange for hover response states */
    --app-max-w: 1100px;
    --app-font: 'Inter', system-ui, -apple-system, sans-serif;

    /* Dynamic orange gradient combinations */
    --gradient-orange: linear-gradient(135deg, #FF9E79 0%, #FF6B35 100%);
    --gradient-soft: linear-gradient(180deg, rgba(255, 107, 53, 0.15) 0%, transparent 100%);
}

/* --- DOCUMENT DEFAULTS & STABILIZATION --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--app-bg);
    color: var(--app-text);
    font-family: var(--app-font);
    line-height: 1.5;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* --- STRUCTURE HOOKS --- */
.app-container {
    max-width: var(--app-max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- STYLED FIXED HEADER NAVIGATION (80PX) --- */
header {
    width: 100%;
    height: 80px; /* Synchronized exact parent height constraint lock */
    border-bottom: 1px solid rgba(44, 24, 16, 0.06);
    display: flex;
    align-items: center;
    position: fixed; /* Locks the header bar firmly to the top of the monitor window */
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
}

.header-flex {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- HEADER NAVIGATION ACTION CLUSTER --- */
.header-action-group {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Spacious distance padding separating the links */
}

.studio-backlink {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--app-text-muted); /* Blends into your dark brown muted palette */
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

/* Hover transition interaction matches your premium design system */
.studio-backlink:hover {
    color: var(--app-brand); /* Shifting to vibrant orange highlight on mouseover */
    transform: translateX(-2px); /* Slight organic horizontal push animation */
}

.app-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--app-text);
}

.app-logo span {
    color: var(--app-brand);
}

.nav-btn {
    background-color: var(--app-text);
    color: #FFFFFF;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-btn:hover {
    transform: scale(1.03);
    background-color: var(--app-brand);
}

/* --- HERO PRESENTATION GRID --- */

/* --- HERO PRESENTATION GRID (SOLID 100% BRAND ORANGE) --- */
.hero-section {
    padding: 5rem 0;
    padding-top: calc(80px + 4rem);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #FFEEDD; /* var(--app-brand); */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

/* --- HERO ELEVATED CONSOLE BADGE --- */
.app-badge {
    display: inline-block;
    background-color: #FFFFFF;
    color: var(--app-brand);
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid var(--app-text); /* Sharp structural light-brutalist border frame */
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.08);
}

/* --- OPTIMIZED READING ACCESSIBILITY CONTRAST UNDER SOLID ORANGE CANVAS --- */
.hero-text-block h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    color: var(--app-text); /* Sharp rich espresso dark brown contrast text */
}

.hero-text-block p {
    font-size: 1.2rem;
    margin-bottom: 2rem;

    /* Contrast Correction: Locks into full deep espresso dark brown at a solid
       medium weight to prevent letters from thinning out over 100% saturated orange */
    color: var(--app-text);
    font-weight: 500;
}


/* --- HERO CTA BUTTON RE-BALANCING CONTROL SETTINGS --- */
.hero-cta-group .btn-secondary {
    /* Updates secondary button base to clean white to pop vibrantly against the solid orange canvas */
    background-color: #FFFFFF;
    color: var(--app-text);
    border: 1px solid var(--app-text);
}

.hero-cta-group .btn-secondary:hover {
    background-color: var(--app-surface-card);
}





.btn {
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-orange);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.15);
}

.btn-secondary {
    background-color: var(--app-surface);
    color: var(--app-text);
    border: 1px solid rgba(44, 24, 16, 0.1);
}

.btn-secondary:hover {
    background-color: var(--app-surface-card);
}

/* HERO PHONE INSPIRED GRAPHIC */
.app-mockup-wrapper {
    background-color: #FFFFFF;
    border: 8px solid var(--app-text); /* Framed in your premium deep brown */
    border-radius: 36px;
    aspect-ratio: 8 / 16; /* Locked portrait smartphone display tracking format */
    max-width: 380px;
    width: 100%;
    margin: 0 auto;

    /* Updated: Swapped layout internal padding for a clean overflow hidden clip
       so the image pushes perfectly flush right to the inside hardware edge */
    padding: 0;
    overflow: hidden;

    box-shadow: 0 25px 50px -12px rgba(44, 24, 16, 0.15);
    display: flex;
}

/* NEW: Image properties ensure perfect fitting inside the phone wireframe */
.hero-app-image {
   /*  width: 100%; */
     height: 100%;
    object-fit: cover; /* Uniformly scales the graphic layout to fill the 9:16 frame flawlessly */
    display: block;
}

.mockup-ui {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.mockup-header {
    height: 24px;
    background-color: var(--app-surface-card);
    border-radius: 6px;
    width: 40%;
}

.mockup-card {
    height: 60px;
    background-color: var(--app-surface-card);
    border-radius: 12px;
}

.mockup-card.line-short {
    width: 75%;
    height: 16px;
}

.mockup-chart {
    flex-grow: 1;
    background: var(--gradient-soft);
    border: 2px dashed rgba(255, 107, 53, 0.3);
    border-radius: 12px;
}

/* --- PERSISTENT VERTICAL FULL-WIDTH FEATURE HOOKS --- */
.features-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(44, 24, 16, 0.05);
}

.section-center-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-center-head h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.section-center-head p {
    color: var(--app-text-muted);
}


/* --- APP SCREENSHOT FEATURES PRESENTATION MATRIX --- */

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}


.feature-item-card {
    background-color: #FFFFFF;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--app-text);
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3.5rem;
    align-items: start; /* Holds columns flush against the upper reading plane */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}


/* TARGET THE SECOND COLUMN (The descriptive text container block) */


/* INTERACTIVE RESPONSIVE ACTION TRANSITION */
/* When hovered, the card subtly lifts and transitions its 1px line to your brand orange */
.feature-item-card:hover {
    transform: translateY(-4px);

    /* Hover accent: Morph the dark brown outline to high-contrast pumpkin orange */
    border-color: var(--app-brand);

    box-shadow: 0 20px 40px -20px rgba(255, 107, 53, 0.15);
}

.feature-item-card > div {
    flex: 1;
}

.feature-item-card > div:last-child {
    /* Updated: Increased top padding from 1.5rem to 2.5rem to push titles down elegantly */
    padding-top: 2.5rem;

    display: flex;
    flex-direction: column;
}

/* HIGH-FIDELITY CONTAINER WRAPPER FOR USER INTERFACE CROPS */
.feature-screenshot-wrapper {
    width: 100%;
    aspect-ratio: 4 / 6; /* Maintained tall portrait ratio */
    background-color: #FFFFFF;

    /* NEW: Thick phone framing border that matches your hero chassis style exactly */
    border: 6px solid var(--app-text);

    /* NEW: High-curvature border-radius to mimic a physical mobile smartphone chassis */
    border-radius: 24px;

    /* ENFORCED: Clips the image corners cleanly underneath the new border frame lines */
    overflow: hidden;

    box-shadow: 0 12px 30px rgba(44, 24, 16, 0.08);
    flex-shrink: 0;
}

.feature-screenshot-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops graphics evenly within card chassis bounds without distortion */
    display: block;
}

.feature-item-card > div {
    flex: 1;
}

.feature-icon-bubble {
    width: 56px;
    height: 56px;
    background-color: #FFFFFF;
    color: var(--app-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.1);
}

.feature-item-card h3 {
    font-size: 1.35rem;
    font-weight: 800;

    /* NEW: Dedicated padding buffer that pushes the paragraph description down */
    margin-bottom: 0.85rem;

    letter-spacing: -0.02em;
    line-height: 1.2;
}


.feature-item-card p {
    color: var(--app-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0; /* Clears baseline margins to preserve your grid heights */
}
/* --- ACQUISITION CARD BLOCK --- */
/* --- ACQUISITION CARD BLOCK --- */
/* --- MINIMAL LIGHT-BRUTALIST ACQUISITION CARD BLOCK --- */
.download-section {
    padding: 4rem 0 6rem;
    width: 100%;

    /* ENFORCED PROTECTION: Permanent edge insulation that can never be overwritten,
       guaranteeing clean horizontal whitespace breathing gaps on all device screen sizes */
    padding-left: var(--app-edge-gutter, 1.5rem) !important;
    padding-right: var(--app-edge-gutter, 1.5rem) !important;
}

.download-box-wrapper {
    background: #FFFFFF;
    padding: 5rem 2rem;
    border-radius: 24px;
    text-align: center;
    color: var(--app-text);
    border: 1px solid var(--app-text);
    box-shadow: 0 20px 40px -20px rgba(44, 24, 16, 0.08);

    /* Keeps the interior layout box constrained cleanly inside the padded container bounds */
    width: 100%;
    max-width: var(--app-max-w);
    margin: 0 auto;
}

.download-box-wrapper h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
}

.download-box-wrapper p {
    /* Updated: Swapped light cream text for your warm, secondary muted gray-brown color */
    color: var(--app-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.badge-store-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.store-badge-btn {
    display: inline-block;
    height: 48px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border-radius: 8px;
}

/* Base State: High-contrast rich dark brown plate matching your typography */
.store-badge-btn rect {
    fill: var(--app-text) !important;
    transition: fill 0.2s ease;
}

.store-badge-btn path { transition: fill 0.2s ease; }
.store-badge-btn text { transition: fill 0.2s ease; }

/* Interactive Hover State: Slides up and snaps to your vibrant brand orange */
.store-badge-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.2);
}

.store-badge-btn:hover rect {
    /* Snaps the badge capsule background to your high-contrast signature orange on hover */
    fill: var(--app-brand) !important;
}

/* Retains crisp white lettering over the high-energy brand orange hover state */
.store-badge-btn:hover path { fill: #FFFFFF !important; }
.store-badge-btn:hover text { fill: #FFFFFF !important; }

.store-badge-btn svg {
    display: block;
}


/* --- COMPLIANT PREMIUM LEGAL FOOTER --- */
footer {
    background-color: #1E0F0A; /* Deep espresso tone variant */
    color: #FDF9F7;
    padding: 5rem 0 3rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand-info {
    max-width: 320px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    display: block;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--app-brand);
}

.footer-brand-info p {
    color: #9F908A;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links-row-wrapper {
    display: flex;
    gap: 4rem;
}

.footer-links-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--app-brand);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-links-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links-column ul a {
    color: #D3C9C5;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links-column ul a:hover {
    color: #FFFFFF;
}

.footer-bottom-copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(253, 249, 247, 0.06);

    /* Updated: Centers the text horizontally inside the flex box container */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    font-size: 0.9rem;
    color: #9F908A;
}

/* --- LEGAL DOCUMENT INTERACTIVE MODAL COMPONENT --- */
.legal-modal-overlay {
    position: fixed;top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(44, 24, 16, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.legal-modal-overlay.active {
    opacity: 1;pointer-events: auto;}
.legal-modal-box {
    background-color: #FFFFFF;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}
.close-modal-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--app-text-muted);
    cursor: pointer;line-height: 1;
}
.close-modal-btn:hover {
    color: var(--app-brand);
}


/* =================================
======================================
===TABLET & MOBILE PORTRAIT LAYER RESPONSIVE BLUEPRINTS======
==================================================================== */

/*  TIER 1: LAPTOPS AND TABLETS (968px and Down) */

@media (max-width: 968px) {

    .hero-grid {
        grid-template-columns: 1fr; /* Collapses hero structure to a single clean row */
    text-align: center;gap: 4rem;
    }
    .hero-text-block p {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
    }

    .hero-cta-group {
        justify-content: center;
    }
    .app-mockup-wrapper {
        max-width: 280px;
    }
    .footer-grid {
        flex-direction: column; /* Flips footer into a single column reading list */
        gap: 2.5rem;
    }
    .footer-brand-info {
        max-width: 100%;
    }
    .footer-links-row-wrapper {
        width: 100%;
        justify-content: space-between;gap: 2rem;
    }
}

@media (max-width: 768px) {
    .feature-item-card {
        /* Collapses wide grids into a tight vertical view optimized for handheld devices */
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.25rem 1.5rem;
        text-align: center;
    }

    .feature-screenshot-wrapper {
        max-width: 320px;
        margin: 0 auto; /* Horizontally centers screenshot cards over content rows */
    }
}

/*  TIER 2: SMARTPHONES AND HANDHELDS (640px and Down) */

@media (max-width: 640px) {
    html {font-size: 15px; /* Scales typography down smoothly on mobile browsers */
    }
    .hero-text-block h1 {
        font-size: 2.6rem;
    }
    .feature-item-card {
        flex-direction: column; /* Stacks feature badges to single vertical lists */
        text-align: center;
        padding: 2rem;gap: 1.25rem;
    }
    .footer-links-row-wrapper {
        flex-direction: column;gap: 2rem;
    }
    .footer-bottom-copyright {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
}
}
