:root {
  --bg-color: #f8f6f0;
  --card-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border-color: #e5e5e5;
  --accent-color: #1a1a1a;
  --accent-hover: #333333;
  --btn-radius: 9999px;
  --card-radius: 12px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 16px;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 64px;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  margin-top: 32px;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

/* Cards & Layout */
.tool-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.content {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.faq-item {
  background-color: #f0eee9;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.faq-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

/* UI Elements (Inputs, Buttons) */
button {
  border-radius: var(--btn-radius);
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:active {
  transform: scale(0.98);
}

button.primary {
  background-color: var(--accent-color);
  color: #ffffff;
  width: 100%;
  margin-top: 16px;
}

button.primary:hover {
  background-color: var(--accent-hover);
}

input[type="file"], 
input[type="text"], 
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px; /* Slightly rounded, primary buttons are full pills */
  font-family: inherit;
  font-size: 16px;
  margin-bottom: 16px;
  background-color: #ffffff;
}

input[type="file"]::file-selector-button {
  border-radius: var(--btn-radius);
  padding: 8px 16px;
  border: none;
  background-color: #f0eee9;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  margin-right: 16px;
}

/* Ads */
.ad-slot {
  min-height: 90px;
  background: #eaeaec;
  border-radius: var(--card-radius);
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
}

/* Spinner & Loading */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: var(--text-secondary);
  font-weight: 600;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.site-header {
    display: flex;
    justify-content: center;
    padding: 16px;
    background-color: var(--bg-secondary);
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
}
.site-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
