/* Base Style Template — Copy into each site's style.css */
/* Design spec: docs/superpowers/specs/2026-03-20-static-ad-revenue-sites-design.md */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #374151;
  background: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 32px 24px;
  }
}

/* Typography */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 4px;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 0.938rem;
  color: #6b7280;
  margin-bottom: 24px;
}

p {
  margin-bottom: 16px;
}

/* Form Elements */
label {
  display: block;
  font-size: 0.813rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: #111827;
  transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Buttons */
button {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  transition: background-color 0.15s, transform 0.1s;
}

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

.btn-primary {
  background: #16a34a;
  color: #ffffff;
}

.btn-primary:hover {
  background: #15803d;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* Result Card */
.result-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.result-card .result-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.result-card .result-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #15803d;
}

.result-card .result-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 4px;
}

/* Breakdown Table */
.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.breakdown-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid #e5e7eb;
}

.breakdown-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.938rem;
}

.breakdown-table td:not(:first-child) {
  text-align: right;
  font-weight: 600;
  color: #111827;
}

/* Input Group */
.input-group {
  margin-bottom: 16px;
}

.input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.input-row > * {
  flex: 1;
}

/* Section Spacing */
.section {
  margin-bottom: 32px;
}

/* FAQ Accordion */
.faq-section {
  margin-top: 32px;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-item summary {
  padding: 16px 0;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 20px;
  font-weight: 400;
  color: #6b7280;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item .faq-answer {
  padding: 0 0 16px 20px;
  color: #374151;
  line-height: 1.7;
}

/* SEO Content */
.seo-content {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.seo-content h2 {
  margin-bottom: 16px;
}

.seo-content p {
  line-height: 1.8;
}

/* Disclaimer */
.disclaimer {
  font-size: 0.75rem;
  color: #9ca3af;
  font-style: italic;
  margin-top: 8px;
}

/* Footer */
footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Noscript */
noscript .noscript-msg {
  text-align: center;
  padding: 40px 20px;
  color: #374151;
}

/* Meeting Cost Calculator — Specific Styles */

.tier-row {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.tier-row:last-child {
  border-bottom: none;
}

.salary-presets {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-preset {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
}

.btn-preset:hover {
  background: #e5e7eb;
}

/* Ticker */
.ticker-display {
  text-align: center;
  padding: 32px 20px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  transition: background 0.5s, border-color 0.5s;
  margin-bottom: 16px;
}

.ticker-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.ticker-value {
  font-size: 3rem;
  font-weight: 800;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.ticker-elapsed {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.ticker-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.ticker-controls button {
  min-width: 100px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

.stat-item {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

/* Share Card */
.share-card {
  text-align: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 12px;
}

.share-card-title {
  font-size: 0.875rem;
  color: #6b7280;
}

.share-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin: 8px 0;
}

.share-card-detail {
  font-size: 0.813rem;
  color: #9ca3af;
}

.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-buttons a,
.share-buttons button {
  flex: 1;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.813rem;
}

/* Duration slider */
input[type="range"] {
  width: 100%;
  margin: 4px 0;
}
