/* General body styling */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f0f0;
    /* Light gray background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: fit-content;
    max-height: 100vh;
    padding: 0;
    /* Remove padding for full screen effect on mobile */
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}


/* Container to simulate the phone screen */
.screen-container {
    width: 375px;
    /* Typical iPhone width */
    height: 812px;
    border-radius: 25px;
    /* Typical iPhone X/XS/11 Pro height */
    max-width: 100%;
    max-height: 85vh;
    /* Ensure it fits viewport height */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    /* Stack content, nav */

    background-image: url('./img/bg-mask.jpg');
    background-size: cover;
    background-position: center;
}

/* Page Styling */
.page {
    display: none;
    /* Hidden by default */
    flex-grow: 1;
    overflow-y: hidden;
    /* padding-bottom: 70px; */
    /* Removed to allow content to define its own bottom padding */
    box-sizing: border-box;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.page.active {
    display: flex;
    /* Show active page */
    flex-direction: column;
}

/* Main content area within each page */
.content-area {
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

/* Coupon Card (Page 1) */
.coupon-card {
    margin-top: 25px;
    border-radius: 12px;
    background-size: cover;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-repeat: no-repeat;
}

.coupon-card .header {
    background-color: rgb(251, 251, 251);
    padding: 25px;
    text-align: center;
}

.coupon-card .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.coupon-card .logo {
    width: 28px;
    height: auto;
    margin-right: 10px;
}

.coupon-card .app-title {
    font-size: 22px;
    font-weight: bold;
    color: #4A5C45;
    margin: 0;
}

.coupon-card .app-subtitle {
    font-size: 13px;
    color: #4A7927;
    margin-top: 4px;
}

.coupon-card .offer-section {
    background-color: #DBBD82;
    padding: 15px 0;
    text-align: center;
}

.coupon-card .save-text {
    font-size: 56px;
    font-weight: bold;
    color: #4A7927;
    margin: 0;
    line-height: 1.1;
}

.coupon-card .plan-text {
    font-size: 15px;
    font-style: normal;
    color: black;
    margin-top: 8px;
}

.coupon-card .coupon-code-section {
    background-color: #6B7A57;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.coupon-card .coupon-code-label {
    color: #EAF7E1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.coupon-card .coupon-code {
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    letter-spacing: 2.5px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.coupon-card .validity-section {
    background-image: url('./img/line-bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    flex-direction: column;
    display: flex;
    align-items: center;
    text-align: center;
}

.coupon-card .valid-until {
    padding-top: 15px;
    padding-bottom: 40px;
    font-size: 15px;
    color: #777;
}

.coupon-card .app-store-section {
    background-color: rgb(251, 251, 251);

    padding: 15px 20px;
    text-align: center;
}

.coupon-card .app-store-button img {
    display: block;
    height: 50px;
    width: auto;
    margin: 0 auto;
}

.coupon-card .recommendation {
    background-color: rgb(251, 251, 251);
    font-size: 10px;
    color: #555;
    line-height: 1.5;
}

.coupon-card .learn-more-link {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
}

.coupon-card .learn-more-link:hover {
    text-decoration: underline;
}

/* Swipe up indicator (Page 1) */
.swipe-indicator {
    text-align: center;
    padding: 15px 0 20px 0;
    /* Add padding for spacing, esp. at bottom */
    width: 100%;
    background-color: #EAF7E1;
    /* Match screen background */
    flex-shrink: 0;
    /* Prevent shrinking */
}

.swipe-dots {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.dot {
    width: 7px;
    height: 7px;
    background-color: #B0BEC5;
    border-radius: 50%;
    margin: 0 4px;
}

.dot.active {
    background-color: #546E7A;
}

.swipe-line {
    width: 40px;
    height: 5px;
    background-color: #546E7A;
    border-radius: 2.5px;
    margin: 8px auto 5px;
}

.swipe-text {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

/* Intro Pages (Page 2, 3, 4) Styling */
.intro-page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
}

.intro-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    padding: 15px 0;
}

.intro-top-nav .back-arrow,
.intro-top-nav .skip-button {
    font-size: 12px;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    border-radius: 5px;
    height: 25px;
    width: 50px;
    background: none;
    text-decoration: none;
}

.intro-image-container {
    overflow: hidden;
}

.intro-image-container img {
    width: 225px;
    object-fit: cover;
}

.img-redeem {
    background-image: url('./img/redeem.svg');
    background-size: cover;
}

.img-add-members {
    background-image: url('./img/add-member.svg');
    background-size: cover;
}

.intro-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    margin-bottom: 10px;
}

.intro-description {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    max-width: 300px;
    flex-grow: 1;
    /* Allow description to take some space */
}

.intro-bottom-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 35px;
    margin-top: auto;
    /* Push to bottom if content is short */
}

.intro-dots {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.intro-dots .dot {
    width: 8px;
    height: 8px;
    background-color: #D0D0D0;
    border-radius: 50%;
    margin: 0 5px;
}

.intro-dots .dot.active {
    background-color: #6B7A57;
}

.next-arrow-button {
    background-color: #6B7A57;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-arrow-button:hover {
    background-color: #5a684a;
}

.explore-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #C5E0B4;
    margin: 30px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.explore-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-title {
    font-size: 24px;
    font-weight: bold;
    color: #4A5C45;
    margin-bottom: 10px;
}

.explore-subtitle {
    font-size: 16px;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.explore-code {
    font-size: 28px;
    font-weight: bold;
    color: #4A5C45;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.start-button {
    background-color: #6B7A57;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    margin-bottom: 20px;
}

.start-button:hover {
    background-color: #5a684a;
}

.page-bottom {
    background-color: white;
    padding-top: 30px;
    margin: 0;
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
}

.page-up {
    width: 100%;
    height: 45%;
    display: flex;
    justify-content: center;
}

#prof-ginkgo {
    width: 280px;
    object-fit: scale-down;
    object-position: left 0 bottom 0;
}

#page5 .page-up {
    align-items: end;
    justify-content: left;
}