/* ============================================================
   Timers & Alarms – Website Stylesheet
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f5f5f7;
    --color-surface: #ffffff;
    --color-text: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-accent: #0071e3;
    --color-accent-hover: #0077ed;
    --color-border: #d2d2d7;
    --color-header-bg: rgba(255, 255, 255, 0.92);
    --color-footer-bg: #1d1d1f;
    --color-footer-text: #d2d2d7;
    --radius: 16px;
    --max-width: 980px;
    --max-width-narrow: 720px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    text-decoration: underline;
}

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

/* --- Header ------------------------------------------------ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-header-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--color-border);
}

header .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

header h1 a {
    color: var(--color-text);
    text-decoration: none;
}

header nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

header nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

header nav a:hover,
header nav a.active {
    color: var(--color-text);
    text-decoration: none;
}

header nav .lang-switch {
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    transition: all 0.2s;
}

header nav .lang-switch:hover {
    background: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
    text-decoration: none;
}

/* --- Main / Content ---------------------------------------- */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.content-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.content-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.content-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.content-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.375rem;
}

.content-card p {
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
}

.content-card ul {
    margin: 0.5rem 0 1rem 1.25rem;
    color: var(--color-text-secondary);
}

.content-card ul li {
    margin-bottom: 0.375rem;
}

.effective-date {
    font-size: 0.875rem;
    color: var(--color-text-secondary) !important;
    margin-bottom: 1.5rem !important;
}

/* --- Hero (Index Page) ------------------------------------- */
.hero {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 540px;
    margin: 0 auto 1.5rem;
}

.app-store-badge {
    display: inline-block;
    margin-top: 0.5rem;
}

.app-store-badge img {
    height: 48px;
    display: inline-block;
}

/* --- Features ---------------------------------------------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.feature-card .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* --- Screenshots ------------------------------------------- */
.screenshots {
    padding: 1rem 1.5rem 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.screenshots h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

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

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.screenshot-item p {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* --- Help Page --------------------------------------------- */
.help-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.help-nav-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    color: var(--color-text);
    transition: box-shadow 0.2s, transform 0.2s;
}

.help-nav-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.help-nav-card .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.help-nav-card .label {
    font-weight: 600;
    font-size: 0.95rem;
}

.help-section {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.help-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.help-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

.help-section p {
    color: var(--color-text-secondary);
    margin-bottom: 0.625rem;
}

.help-section ol {
    margin: 0.5rem 0 1rem 1.25rem;
    color: var(--color-text-secondary);
}

.help-section ol li {
    margin-bottom: 0.375rem;
}

/* --- Contact ----------------------------------------------- */
.contact-info {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}

.email-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--color-accent);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.email-button:hover {
    background: var(--color-accent-hover);
    text-decoration: none;
}

/* --- Footer ------------------------------------------------ */
footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    text-align: center;
    padding: 2rem 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--color-footer-text);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

footer p {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    header nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    .help-section {
        padding: 1.5rem;
    }

    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
        border-radius: 18px;
    }
}
