:root {
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --primary: #0f172a;
    --secondary: #64748b;
    --accent: #0ea5e9;
    --tier1: #eab308;
    --tier2: #8b5cf6;
    --tier3: #10b981;
    --timer-bg: #ffffff;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-color);
}

.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.bg-light { background: #ffffff; }
.x-flex { display: flex; justify-content: space-between; align-items: center; }

.site-header {
    padding: 1.5rem 0;
    background: var(--primary);
    color: white;
}
.site-header .logo { font-size: 1.5rem; font-weight: bold; }
.site-header .logo span { color: var(--accent); }
.site-header nav a { color: #cbd5e1; text-decoration: none; margin-left: 1.5rem; font-weight: 500; transition: color 0.2s; }
.site-header nav a:hover { color: white; }

.hero { padding: 4rem 0; text-align: center; border-bottom: 1px solid var(--border); }
.hero-text h1 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--primary); }
.hero-text p { font-size: 1.1rem; color: var(--secondary); max-width: 600px; margin: 0 auto 2.5rem; }

.tracker-app {
    background: var(--timer-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    max-width: 500px;
    margin: 0 auto;
    transition: border-color 0.3s, background-color 0.3s;
}

.timer-display {
    font-size: 4.5rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.timer-status { font-size: 1rem; color: var(--secondary); margin-bottom: 2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.timer-controls { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.btn {
    padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 600; border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: white; flex: 1; }
.btn-primary:hover { background: #1e293b; }
.btn-secondary { background: #f1f5f9; color: var(--secondary); }
.btn-secondary:hover { background: #e2e8f0; }

.tiers-legend { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.tier-badge { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: #f1f5f9; color: var(--secondary); opacity: 0.5; transition: opacity 0.3s, background 0.3s, color 0.3s; }

/* Active Tier States */
.tracker-app.tier-1 { border-color: var(--tier1); }
.tracker-app.tier-1 .timer-display { color: var(--tier1); }
.tracker-app.tier-1 #badge-1 { opacity: 1; background: var(--tier1); color: #fff; }

.tracker-app.tier-2 { border-color: var(--tier2); }
.tracker-app.tier-2 .timer-display { color: var(--tier2); }
.tracker-app.tier-2 #badge-1, .tracker-app.tier-2 #badge-2 { opacity: 1; background: var(--tier2); color: #fff; }

.tracker-app.tier-3 { border-color: var(--tier3); }
.tracker-app.tier-3 .timer-display { color: var(--tier3); }
.tracker-app.tier-3 #badge-1, .tracker-app.tier-3 #badge-2, .tracker-app.tier-3 #badge-3 { opacity: 1; background: var(--tier3); color: #fff; }

.content-section { padding: 4rem 0; }
.content-section h2 { font-size: 2rem; margin-bottom: 2rem; text-align: center; color: var(--primary); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.card { padding: 2rem; background: var(--bg-color); border-radius: 8px; border: 1px solid var(--border); }
.card h3 { margin-bottom: 1rem; color: var(--primary); }

.prose { max-width: 700px; margin: 0 auto; }
.prose h3 { margin: 2rem 0 0.5rem; color: var(--primary); }
.prose p { margin-bottom: 1rem; color: var(--text-color); }

.ad-container { margin: 2rem auto; text-align: center; min-height: 120px; }

footer { background: var(--primary); color: white; padding: 2rem 0; text-align: center; font-size: 0.9rem; }
.footer-nav { margin-top: 1rem; display: flex; justify-content: center; gap: 1rem; }
.footer-nav a { color: #cbd5e1; text-decoration: none; }
.footer-nav a:hover { color: white; text-decoration: underline; }

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .timer-display { font-size: 3.5rem; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
