/* Forged Iron Timer website.
   Colors match Shared/Theme.swift in the app. No web fonts, scripts, or outside
   requests, so the site keeps the app's no-tracking promise too. */

:root {
    --background: #121214;
    --surface: #26262b;
    --surface-raised: #2f2f35;
    --text: #f0f0f0;
    --muted: #b3b3b3;
    --line: rgba(255, 255, 255, 0.1);

    --forge: #ff7300;   /* EMOM, accent */
    --volt: #00d1ff;    /* Stopwatch */
    --blaze: #ff2e8c;   /* Tabata */
    --surge: #b880ff;   /* Countdown */
    --chalk: #f0f0f0;   /* For Time */
    --steel: #6ba3ff;   /* Custom */
    --lime: #c2ff1a;    /* Rest Timer */
    --ready: #ffd600;
    --done: #33e066;

    --radius: 24px;
    --width: 760px;
    --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
}

a { color: var(--forge); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ready); }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(18, 18, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand:hover { color: var(--text); }

.site-nav { display: flex; gap: 6px; }

.site-nav a {
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
}

.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: #000; background: var(--forge); }

/* ---------- Hero ---------- */

.hero {
    text-align: center;
    padding: 72px 0 48px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 115, 0, 0.22), transparent 70%);
}

.hero .app-icon {
    width: 132px;
    height: 132px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 115, 0, 0.35);
}

.hero h1 {
    margin: 28px 0 8px;
    font-size: clamp(40px, 9vw, 64px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero .tagline {
    margin: 0 auto;
    max-width: 520px;
    color: var(--muted);
    font-size: 20px;
    font-weight: 600;
}

.hero .tagline strong { color: var(--forge); }

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 16px 30px;
    border-radius: 999px;
    background: var(--forge);
    color: #000;
    font-size: 19px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.button:hover { color: #000; transform: scale(1.04); }
.button svg { width: 22px; height: 22px; }

/* ---------- Page title (privacy, support) ---------- */

.page-title { padding: 56px 0 8px; }

.page-title .eyebrow {
    color: var(--forge);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-title h1 {
    margin: 6px 0 6px;
    font-size: clamp(34px, 7vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.page-title .updated { color: var(--muted); margin: 0; }

/* ---------- Sections ---------- */

section { padding: 28px 0; }

h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.section-label {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Bright mode tiles with black text, like the app's home screen. */
.modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.mode {
    padding: 20px;
    border-radius: var(--radius);
    color: #000;
}

.mode h3 { margin: 0 0 4px; font-size: 22px; font-weight: 900; line-height: 1.2; }
.mode p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; opacity: 0.8; }

.mode.emom { background: var(--forge); }
.mode.tabata { background: var(--blaze); }
.mode.amrap { background: var(--surge); }
.mode.fortime { background: var(--chalk); }
.mode.custom { background: var(--steel); }
.mode.rest { background: var(--lime); }
.mode.stopwatch { background: var(--volt); grid-column: 1 / -1; } /* Fills the last row instead of sitting alone. */

/* Dark cards for features, promises, and policy sections. */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.card {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
}

.card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 900;
}

.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.dot {
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--forge);
}

.dot.done { background: var(--done); }
.dot.volt { background: var(--volt); }
.dot.blaze { background: var(--blaze); }
.dot.surge { background: var(--surge); }
.dot.steel { background: var(--steel); }
.dot.ready { background: var(--ready); }

/* The highlighted "short version" box. */
.callout {
    margin: 24px 0 8px;
    padding: 26px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(51, 224, 102, 0.2), rgba(51, 224, 102, 0.05));
    border: 1px solid rgba(51, 224, 102, 0.4);
}

.callout h2 { color: var(--done); font-size: 22px; margin-bottom: 8px; }
.callout p { margin: 0; font-size: 19px; font-weight: 700; }

/* Long-form text (privacy policy). */
.prose section { border-top: 1px solid var(--line); }
.prose section:first-of-type { border-top: 0; }
.prose p, .prose li { color: #d6d6d6; }
.prose strong { color: var(--text); }
.prose ul { padding-left: 22px; }

/* ---------- Support ---------- */

.contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 8px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--forge);
    color: #000;
}

.contact h2 { margin: 0 0 4px; font-size: 24px; }
.contact p { margin: 0; font-weight: 600; }

.contact a.email {
    padding: 12px 22px;
    border-radius: 999px;
    background: #000;
    color: var(--forge);
    font-weight: 900;
    text-decoration: none;
    overflow-wrap: anywhere; /* Last resort only; the phone layout below keeps it on one line. */
}

.contact a.email:hover { color: var(--ready); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.checklist li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--surface);
}

.checklist li::before { content: "✓"; color: var(--done); font-weight: 900; }

.faq { display: grid; gap: 10px; }

.faq details {
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden;
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    font-size: 17.5px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--forge);
    color: #000;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { background: var(--surface-raised); }
.faq details p { margin: 0; padding: 16px 22px 20px; color: #d6d6d6; }

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 48px;
    padding: 32px 0 48px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer nav { display: flex; gap: 18px; }

@media (max-width: 520px) {
    .site-header .brand span { display: none; }
    .hero { padding-top: 48px; }
    .contact { flex-direction: column; align-items: stretch; padding: 22px 18px; }
    /* Full width, with text that scales to the screen, so the address fits on one line
       even on a 375-point iPhone SE. */
    .contact a.email {
        padding: 12px 10px;
        text-align: center;
        font-size: min(17px, 3.9vw);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
