@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
    --primary-green: #00A32A;
    --text-dark: #11573E;
    --bg-light: #eef9de;
    --bg-gradient: linear-gradient(185deg, #f4faeb 0%, #d7f4da 100%);
}

body {
    font-family: 'Roboto', 'Noto Sans TC', sans-serif;
    margin: 0;
}

/********** Fixing **********/
/* Custom swiper icon */
.swiper-button-prev:after {
    content: "\f104";
    font-family: "FontAwesome";
}
.swiper-button-next:after {
    content: "\f105";
    font-family: "FontAwesome";
}

/********** Bootstrap dropdown nav **********/
#main-nav .dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.15);
}
#main-nav .dropdown-menu a {
    color: inherit;
    background-color: transparent;
}
#main-nav .dropdown-menu[data-bs-popper] {
    margin-left: 0;
}
#main-nav .dropdown-submenu {
    position: relative;
}
#main-nav .dropdown-submenu a {
    padding: 4px 16px;
}
#main-nav .dropdown-toggle {
    padding-right: 30px;
}
#main-nav .dropdown-toggle:after {
    position: absolute;
    content: "⏷";
    border: none;
    right: 10px;
}
#main-nav .dropdown-toggle.show:after {
    content: "⏶";
}
@media (hover: hover) {
    #main-nav .dropdown:hover>.dropdown-menu {
        display: block;
    }
    #main-nav li.dropdown-submenu:hover>.dropdown-menu {
        display: block;
        top: 0;
        left: 100%;
    }
    #main-nav .dropdown>.dropdown-toggle:active {
        pointer-events: none;   /*Without this, clicking will make it sticky*/
    }
    #main-nav .dropdown-submenu .dropdown-toggle:after {
        content: "⏵";
    }
}
@media (hover: none) {
    #main-nav .dropdown-menu {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    #main-nav .dropdown-menu .dropdown-menu {
        padding: 0;
        box-shadow: none;
    }
}



/********** Main **********/
main img {
    max-width: 100%;
}



/********** Desktop Only **********/
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1200px;   /* Change the maximum content width here */
    }
}

/********** Large Desktop **********/
@media only screen and (max-width: 1199.98px) {

}

/********** Desktop **********/
@media only screen and (max-width: 991.98px) {

}

/********** Tablet **********/
@media only screen and (max-width: 767.98px) {

}

/********** Mobile **********/
@media only screen and (max-width: 479.98px) {

}

/********** Landing Page Specific Styles **********/
html {
    height: 100%;
}

.landing-body {
    height: 100%;
    background: var(--bg-gradient);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.landing-container {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    z-index: 10;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.app-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-green);
    margin: 0 auto 2.5rem auto;
    border-radius: 2px;
}

.app-icon {
    width: 180px;
    height: 180px;
    border-radius: 22.5%; /* iOS squircle approximation */
    box-shadow: 0 20px 40px rgba(0, 163, 42, 0.45);
    object-fit: cover;
    transition: all 0.3s ease;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 190px;
    gap: 12px;
}

.btn-download:hover {
    transform: scale(1.03);
    background-color: #222;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: #fff;
}

.btn-download svg {
    width: 28px;
    height: 28px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-text span:first-child {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: -2px;
}

.btn-text span:last-child {
    font-size: 1.1rem;
    line-height: 1.3rem;
}

.btn-android {
    background-color: var(--primary-green);
}

.btn-android:hover {
    background-color: #008f25;
    box-shadow: 0 8px 20px rgba(0, 163, 42, 0.25);
    color: #fff;
}

.bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    opacity: 0.04;
    background-image: linear-gradient(var(--primary-green) 1px, transparent 1px),
                      linear-gradient(90deg, var(--primary-green) 1px, transparent 1px);
    background-size: 40px 40px;
}

@media (max-width: 480px) {
    .app-title {
        font-size: 2rem;
    }
    .app-icon {
        width: 150px;
        height: 150px;
    }
    .btn-download {
        width: 100%;
    }
    .landing-container {
        padding: 1.5rem;
    }
}

.landing-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dark);
    z-index: 10;
    opacity: 0.8;
}

.landing-footer p {
    margin-bottom: 5px;
}

.landing-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.landing-footer a {
    color: var(--text-dark);
    text-decoration: none;
    transition: opacity 0.2s;
}

.landing-footer a:hover {
    text-decoration: underline;
    opacity: 1;
}

/********** Document Pages (Privacy / Terms) **********/
.doc-body {
    min-height: 100%;
    font-family: 'Roboto', 'Noto Sans TC', sans-serif;
}

.doc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 2rem 1rem;
}

.doc-container h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #000;
    padding-bottom: 0.75rem;
}

.doc-container h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.doc-container h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.doc-container h4,
.doc-container h5,
.doc-container h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.doc-container p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.doc-container ol,
.doc-container ul {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.doc-container li {
    margin-bottom: 0.4rem;
}

@media (max-width: 480px) {
    .doc-container {
        padding: 1rem 1.25rem 1rem;
    }

    .doc-container h1 {
        font-size: 1.5rem;
    }
}