:root {
  --primary: #f97316;
  --primary-hover: #ea580c;
  --secondary: #475569;
  --dark: #0f172a;
  --light: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #334155;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: var(--font-family);
  color: var(--text);
  background-color: var(--light);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
}

.main-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
  transition: color 0.2s;
}

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

.hero {
  padding: 4rem 0;
  text-align: center;
}

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

.text-light {
  color: var(--light);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.lead-text {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  font-size: 1rem;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  padding: 0.5rem 1rem;
}

.btn-large {
  width: 100%;
  padding: 1rem;
  font-size: 1.25rem;
}

.app-section {
  padding: 4rem 1.5rem;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

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

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card h2 {
  margin-bottom: 1rem;
  color: var(--dark);
  font-size: 1.5rem;
}

.app-settings p {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--secondary);
}

textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
  font-family: inherit;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.drill-card {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.placeholder-text {
  color: var(--secondary);
  font-style: italic;
}

#activeDrillName {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

.hidden {
  display: none !important;
}

.timer-module {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.timer-display {
  font-size: 3rem;
  font-weight: 700;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
  margin: 1rem 0;
}

.timer-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.info-section {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}

.info-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--dark);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-grid h3 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.site-footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

.footer-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--light);
  text-decoration: none;
  opacity: 0.8;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  opacity: 1;
}


/* 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;
}
