@import url('https://cdn.rawgit.com/moonspam/NanumSquare/master/nanumsquare.css');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

:root {
    --color-primary: #0f172a;
    --color-secondary: #1e293b;
    --color-accent: #c5a059;
    --color-text-main: #334155;
    --color-text-light: #94a3b8;
    --color-background: #ffffff;
    --color-surface: #f8fafc;

    --font-heading: 'NanumSquare', sans-serif;
    --font-body: 'NanumSquare', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --border-radius: 4px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s ease;

    /* Galaxy S25 Resolution (Approximate) */
    --mobile-max-width: 412px;
    /* Width */
    --mobile-height: 915px;
    /* Height */
}

html {
    height: 100%;
    overflow: hidden;
    background-color: #e2e8f0;
    /* Background for PC view outside the app */
}

/* Allow scrolling on order page */
html:has(body.order-page) {
    overflow-y: auto;
    height: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

html:has(body.order-page)::-webkit-scrollbar {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    /* Darker background for desktop view */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center vertically on PC */
    height: 100%;
    overflow: hidden;
}

/* Allow scrolling on order page body */
body.order-page {
    overflow: visible;
    /* Let html handle scrolling */
    height: auto;
    display: block;
    /* Disable flex centering to allow scroll */
    padding: 0;
    /* Remove padding to fix top gap */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

body.order-page::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

body {
    /* Disable Text Selection */
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
    -webkit-touch-callout: none;
    /* iOS Safari */
}

/* Mobile Wrapper */
.app-container {
    width: 100%;
    max-width: var(--mobile-max-width);
    height: 100%;
    max-height: 100vh;
    /* Limit height on PC */
    background-color: var(--color-background);

    /* Full height logic handled by max-height on PC, 100dvh on mobile */

    overflow-y: scroll;
    /* Enable vertical scrolling */
    scroll-snap-type: y mandatory;
    /* Enable scroll snap */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    /* Stronger shadow for frame effect */
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Media query to ensure full screen on actual mobile devices */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
        max-height: 100%;
        box-shadow: none;
    }

    body {
        background-color: var(--color-background);
    }
}

.app-container::-webkit-scrollbar {
    display: none;
}

/* Snap Section */
.snap-section {
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Ensure navbar doesn't cover content when snapping */
.snap-section {
    padding-top: 50px;
    /* Navbar height */
    justify-content: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 100%;
    padding: 0 var(--spacing-sm);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    /* Adjusted for mobile */
    background-color: var(--color-primary);
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    width: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: center;
}


.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    background-color: white;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

/* CTA Button Styles */
.btn-cta {
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-cta:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}

/* Pulse Animation Ring */
.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.7);
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(15, 23, 42, 0);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0);
    }
}

/* Mobile Specific CTA Effects */
@media (max-width: 768px) {
    .btn-cta::before {
        display: none;
        /* Remove pulse ring */
    }

    .btn-cta:hover {
        /* Reset hover effects */
        transform: none;
        box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
        background-color: var(--color-primary);
        border-color: var(--color-primary);
        color: white;
    }

    .btn-cta {
        /* Shimmer Effect */
        background: linear-gradient(110deg, var(--color-primary) 40%, #334155 50%, var(--color-primary) 60%);
        background-size: 200% 100%;
        animation: mobile-shimmer 3s infinite linear;
    }

    .btn-cta:active {
        /* Tactile Feedback */
        transform: scale(0.96);
        background-color: var(--color-accent);
        border-color: var(--color-accent);
        transition: transform 0.1s;
    }
}

@keyframes mobile-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


.section-padding {
    padding-top: calc(50px + var(--spacing-sm));
    padding-bottom: var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Navigation */
/* Navigation */
.app-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-sm);
    /* Removed vertical padding */
    height: 50px;
    /* Fixed height */
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Added shadow */
}

.app-navbar .container {
    padding: 0;
}

/* Floating Navbar (Cloned) */
.app-navbar-floating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-sm);
    height: 50px;
    z-index: 20;

    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 100%;
    max-width: var(--mobile-max-width);

    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Enhanced shadow */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    pointer-events: none;
}

.app-navbar-floating.visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a.active {
    color: var(--color-primary);
    font-weight: 700;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Hero Section */
/* Hero Image/Video Section */
.hero-image-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
    /* Fallback color */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure video covers the section */
    transform: translate(-50%, -50%);
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Slight dark overlay for better visibility if needed */
    z-index: 2;
}

.hero-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    pointer-events: none;
    text-align: center;
}

.hero-text-wrapper {
    display: flex;
    flex-direction: column;
    width: 70%;
    /* Occupy 70% of screen width */
    max-width: 100%;
}

.hero-text-main {
    font-family: var(--font-heading);
    font-weight: 900;
    /* Font size handled by JS for exact 70% width fit */
    font-size: 10rem;
    line-height: 0.8;
    color: #ffffff;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    mix-blend-mode: overlay;
    opacity: 0.9;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.hero-text-sub {
    font-family: var(--font-body);
    /* Font size handled by JS for exact 70% width fit */
    font-size: 3rem;
    color: #ffffff;
    margin-top: 0.3em;
    line-height: 0.8;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
    mix-blend-mode: overlay;
    display: block;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

/* Footer / SNS Section */
footer {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    /* snap-section handles height and display flex */
}

.sns-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.sns-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.sns-item:active {
    opacity: 1;
    transform: scale(0.95);
}

.sns-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.sns-icon svg {
    width: 28px;
    height: 28px;
}

.copyright {
    position: absolute;
    bottom: var(--spacing-md);
    width: 100%;
    left: 0;
}

footer p {
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Hero Content Section */
.hero-content-section {
    background-color: var(--color-surface);
    position: relative;
    overflow: hidden;
    /* Center content vertically/horizontally via flex (from snap-section) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%) rotate(-45deg);
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6;
}

.bg-line {
    white-space: nowrap;
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    display: flex;
    width: fit-content;
}

.bg-line span {
    padding-right: 2rem;
}

.bg-line.scroll-left {
    animation: marquee-left 80s linear infinite;
}

.bg-line.scroll-right {
    animation: marquee-right 80s linear infinite;
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    /* Ensure content is above background */
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content-section h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    line-height: 1.3;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-weight: 400;
    max-width: 500px;
    word-break: keep-all;
    padding: 0 var(--spacing-md);
}

.hero-content-section p {
    font-size: 1rem;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-md);
}

.hero-content-section .btn-group {
    display: flex;
    gap: 10px;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    /* Limit button width */
}

/* Features */
.features {
    background-color: white;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Remove gap for continuous line */
    padding: 0 var(--spacing-sm);
    width: 100%;
    max-width: 340px;
    /* Limit width to center the block */
    margin: 0 auto;
    /* Center the block */
}

.feature-card {
    display: flex;
    align-items: flex-start;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0 0 var(--spacing-md) 0;
    /* Add padding instead of gap */
    box-shadow: none;
    position: relative;
}

/* Vertical Line */
.feature-card::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    /* Move line to left */
    top: 0.7rem;
    /* Align with text center (approx) */
    bottom: -0.7rem;
    /* Extend to next card */
    width: 1px;
    background-color: #cbd5e1;
}

.feature-card:last-child::before {
    display: none;
}

/* Dot */
.feature-card::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    /* Move dot to left */
    top: 0.7rem;
    /* Align with text center */
    width: 7px;
    height: 7px;
    background-color: var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    /* Center perfectly */
}

.feature-icon {
    font-size: 1.2rem;
    font-weight: 800;
    color: #cbd5e1;
    /* Lighter color for less emphasis */
    width: 2rem;
    text-align: left;
    margin-left: 1.5rem;
    /* Space from line */
    margin-right: 1rem;
    position: relative;
    padding-top: 0;
    /* Remove padding */
    line-height: 1.4;
    /* Match title line-height */
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--color-primary);
    line-height: 1.4;
    /* Consistent line-height */
    margin-top: 0;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns */
    grid-auto-rows: 1fr;
    /* Make all rows equal height */
    gap: var(--spacing-sm);
    /* Smaller gap */
    padding: 0 var(--spacing-sm);
    width: 100%;
    height: auto;
    /* Ensure it fits within the section */
}

.benefit-card {
    text-align: center;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    background-color: #f8fafc;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* Fill grid cell */
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.benefit-card h3 {
    margin-bottom: 4px;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.benefit-card p {
    color: var(--color-text-main);
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: keep-all;
    transition: color 0.3s ease;
}

.benefit-card.active {
    background-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-card.active h3,
.benefit-card.active p {
    color: white;
}



/* Reviews Section */
.reviews-section {
    background-color: var(--color-surface);
    padding-top: calc(50px + var(--spacing-md));
    overflow: hidden;
    /* Hide overflow from marquee */
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
}

.reviews-row {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    /* Allow manual scroll */
    padding-bottom: var(--spacing-sm);
    /* Space for scrollbar if any, though hidden */
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    cursor: grab;
}

.reviews-row::-webkit-scrollbar {
    display: none;
}

.reviews-row:active {
    cursor: grabbing;
}

.review-card {
    flex: 0 0 280px;
    /* Fixed width */
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    /* Removed scroll-snap-align since we want smooth marquee */
}


.review-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background-color: #f1f5f9;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    background-size: cover;
    background-position: center;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
}

.review-text {
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0.8;
}

.touch-icon {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.touch-icon::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: swipe-animate 2s infinite;
}

@keyframes swipe-animate {
    0% {
        opacity: 0;
        bottom: 10px;
    }

    30% {
        opacity: 1;
    }

    80% {
        opacity: 1;
        bottom: 32px;
    }

    100% {
        opacity: 0;
        bottom: 32px;

    }
}

/* KakaoTalk Chat Button */
.kakao-chat-btn {
    position: fixed;
    bottom: 20px;
    /* Changed from 100px to match right margin (gap) */
    /* PC Positioning (Centered relative to app-container) */
    left: 50%;
    margin-left: 136px;
    /* 206px(Half Width) - 50px(Btn) - 20px(Gap) */

    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    /* Ensure no underline for anchor */
}

/* Order Page Exception: Keep button higher to avoid overlap with bottom actions */
.is-order-process .kakao-chat-btn {
    bottom: 100px;
}

.kakao-chat-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.kakao-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    /* Subtle shadow on hover */
    background-color: rgba(255, 255, 255, 0.8);
}

.kakao-chat-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
}

@media (max-width: 480px) {
    .kakao-chat-btn {
        left: auto;
        right: 20px;
        margin-left: 0;
    }
}

/* Order Mode Frame Styles (Ported from customize.css for consistency) */
.app-container.order-mode {
    display: block;
    overflow: visible !important;
    position: relative;
    height: auto !important;
    min-height: 100vh;
    max-height: none !important;
    margin: 0 auto;
}

.app-container.order-mode .navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-max-width);
    z-index: 100;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Home Mode (Full Screen Desktop with Scroll Snap) */
.app-container.home-mode {
    max-width: 100%;
    max-height: 100%;
    box-shadow: none;
    border-radius: 0;
    /* Ensure scroll snap works */
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

/* Adjust container width in home mode for better readability */
.app-container.home-mode .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Adjust grids for desktop */
@media (min-width: 768px) {
    .app-container.home-mode .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns on desktop */
        max-width: 100%;
    }

    .app-container.home-mode .features-grid {
        flex-direction: row;
        max-width: 100%;
        justify-content: center;
        gap: var(--spacing-lg);
    }

    .app-container.home-mode .feature-card {
        padding: 0;
        text-align: center;
        align-items: center;
    }

    .app-container.home-mode .feature-card::before {
        display: none;
        /* Remove vertical line on desktop */
    }
}

.btn-outline.active {
    background-color: var(--color-primary);
    color: white !important;
}

/* Why Custom Section */
.custom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-sm);
    width: 100%;
}

.custom-card {
    text-align: left;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    transition: var(--transition);
    gap: var(--spacing-sm);
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.custom-icon {
    font-size: 2rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.custom-text-wrapper {
    display: flex;
    flex-direction: column;
}

.custom-card h3 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
}

.custom-card p {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.5;
    word-break: keep-all;
}

@media (min-width: 768px) {
    .app-container.home-mode .custom-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        margin: 0 auto;
    }
}