/* --- General Setup & Variables --- */
:root {
    --primary: #000000;
    --secondary: #616161;
    /* grey[600] */
    --subtitle: #424242;
    /* grey[800] */
    --background: #ffffff;
    --surface: #f5f5f5;
    /* grey[100] */
    --success: #34c759;
    --error: #ff3b30;
    --blue-grey: #546e7a;
    --green: #2e7d32;
    --orange: #ef6c00;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
    color: var(--primary);
    background-color: var(--background);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.gray-bg {
    background-color: var(--surface);
}

h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

p {
    margin-bottom: 1rem;
}

p.subheading {
    font-size: 22px;
    color: var(--subtitle);
    line-height: 1.6;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

ul {
    list-style: none;
    padding-left: 0;
}

hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 32px 0;
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.logo.large .logo-icon {
    font-size: 60px;
}

.logo.large .logo-text {
    font-size: 30px;
}

.logo-icon {
    font-size: 48px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

/* --- Hero Section --- */
#hero {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    flex: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-image {
    flex: 4;
    text-align: center;
}

.hero-image img {
    max-height: 500px;
    width: auto;
}

.coming-soon {
    font-size: 18px;
    color: var(--secondary);
    margin-top: 12px;
    width: 100%;
}

/* --- App Store Buttons --- */
.app-store-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
    align-items: center;
}

.store-button {
    display: inline-block;
    transition: transform 0.2s ease-out, opacity 0.2s;
}

.store-button:hover {
    transform: translateY(-3px);
}

.store-badge {
    height: 48px;
    width: auto;
    display: block;
}

.store-button-disabled {
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: not-allowed;
}

.store-button-disabled:hover {
    transform: none;
}

/* --- Problem/Solution Section --- */
.two-column {
    display: flex;
    gap: 40px;
}

.card {
    background-color: var(--background);
    border: 1px solid var(--primary);
    box-shadow: 0 2px 0 var(--primary);
    border-radius: 16px;
    padding: 24px;
    flex: 1;
    min-height: 248px;
}

.card h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.card h2.problem {
    color: var(--error);
}

.card h2.solution {
    color: var(--success);
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.info-icon {
    font-size: 32px;
    line-height: 1.2;
}

.info-row p {
    font-size: 18px;
    margin-bottom: 0;
}

/* --- Target Audience Section --- */
#target-audience {
    text-align: center;
}

#target-audience .subheading {
    color: var(--secondary);
}

.audience-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 56px;
}

.audience-card {
    width: 280px;
    height: 240px;
    background-color: var(--background);
    padding: 24px;
    border-radius: 12px;
    text-align: left;
    border-width: 1px;
    border-style: solid;
    box-shadow: 0 2px 0;
    display: flex;
    flex-direction: column;
}

.audience-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.audience-card.blue-grey {
    border-color: var(--blue-grey);
    box-shadow-color: var(--blue-grey);
}

.audience-card.blue-grey .audience-icon {
    color: var(--blue-grey);
}

.audience-card.green {
    border-color: var(--green);
    box-shadow-color: var(--green);
}

.audience-card.green .audience-icon {
    color: var(--green);
}

.audience-card.orange {
    border-color: var(--orange);
    box-shadow-color: var(--orange);
}

.audience-card.orange .audience-icon {
    color: var(--orange);
}

.audience-card p {
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 0;
}

/* --- Feature Showcase Section --- */
#features .container {
    padding: 80px 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2,
.feature-text .subheading {
    text-align: left;
}

.feature-text ul {
    list-style: none;
    margin-top: 24px;
}

.feature-text li {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    height: auto;
    max-width: 450px;
    display: block;
    margin: auto;
}

/* --- Call to Action Section --- */
#cta {
    text-align: center;
}

#cta .app-store-buttons {
    justify-content: center;
}

/* --- Footer --- */
footer {
    padding: 30px 20px;
    text-align: center;
}

.footer-links {
    margin: 16px 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.copyright {
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 0;
}

/* --- Legal Pages (Privacy & Terms) --- */
.page-header {
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo-link {
    display: inline-block;
}

.nav-button {
    background-color: var(--surface);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.nav-button:hover {
    background-color: #e0e0e0;
}

.legal-page .container {
    max-width: 800px;
    padding-top: 30px;
}

.legal-page h1 {
    font-size: 28px;
}

.legal-page h2 {
    font-size: 22px;
    text-align: left;
    margin-top: 24px;
}

.legal-page h3 {
    font-size: 18px;
    margin-top: 16px;
}

.legal-page p,
.legal-page li {
    font-size: 16px;
    line-height: 1.8;
}

.legal-page ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-page ul ul {
    list-style: circle;
    margin-top: 8px;
}

.effective-date {
    color: var(--secondary);
    margin-bottom: 16px;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    p.subheading {
        font-size: 18px;
    }

    #hero,
    .two-column,
    .feature-item,
    .feature-item.reverse {
        flex-direction: column;
        gap: 40px;
    }

    .hero-content,
    .hero-content .coming-soon {
        align-items: center;
        text-align: center;
    }

    .app-store-buttons,
    #cta .app-store-buttons {
        justify-content: center;
    }

    .feature-item.reverse {
        flex-direction: column;
    }

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

    .feature-text h2,
    .feature-text .subheading {
        text-align: center;
    }

    .container {
        padding: 40px 20px;
    }

    #features .container {
        padding: 40px 20px;
    }
}