/* SeasonCheck styles */
:root {
  --bg: #fbf8f3;
  --bg-soft: #f3ede3;
  --ink: #1d2a2a;
  --ink-soft: #4a5a5a;
  --line: #d9d2c4;
  --accent: #c25e3a;
  --accent-soft: #f0d9cc;
  --spring: #7a9b6d;
  --summer: #d9a441;
  --autumn: #b5542d;
  --winter: #5b7fa5;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(00,00,00,0.04), 0 8px 24px rgba(00,00,00,0.06);
  --max: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  color: var(--accent);
}
.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero { padding: 60px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.lede {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 52ch;
  margin: 0 0 24px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--ink-soft);
}
.hero-stats strong {
  color: var(--ink);
  font-size: 16px;
}

.hero-visual {
  position: relative;
  height: 280px;
}
.season-blob {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0.9;
}
.season-blob.spring { background: var(--spring); top: 0; left: 20%; }
.season-blob.summer { background: var(--summer); top: 40px; right: 0; }
.season-blob.autumn { background: var(--autumn); bottom: 20px; left: 0; }
.season-blob.winter { background: var(--winter); bottom: 0; right: 20%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
  background: transparent;
  color: var(--ink);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #a84d2e; text-decoration: none; color: #fff; }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }

/* Sections */
section { padding: 60px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 32px; }
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 16px;
}

/* Tracker */
.tracker-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}
.entry-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
}
.field label .value {
  color: var(--accent);
  font-weight: 700;
}
.field input[type="date"],
.field input[type="text"] {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}
.field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-status {
  font-size: 14px;
  color: var(--spring);
  margin: 0;
  min-height: 20px;
}

.entry-side {
  display: grid;
  gap: 20px;
  align-content: start;
}
.entry-side h3 { margin: 0 0 4px; font-size: 18px; }
.entry-side p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.preset-list { display: grid; gap: 10px; }
.preset {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  transition: border-color 0.15s ease;
}
.preset:hover { border-color: var(--accent); }
.preset strong { color: var(--ink); font-size: 14px; }
.preset span { color: var(--ink-soft); font-size: 13px; }
.quick-tips {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 16px;
}
.quick-tips h4 { margin: 0 0 8px; font-size: 14px; }
.quick-tips ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.quick-tips li { margin-bottom: 4px; }

/* Map */
.map-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.map-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.map-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.map-table th, .map-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.map-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.map-table tr:last-child td { border-bottom: none; }
.map-table td.empty { color: var(--ink-soft); font-style: italic; }

.heatmap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin-top: 24px;
}
.heatmap-cell {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  position: relative;
}
.heatmap-cell[data-score="0"] { background: var(--bg-soft); }
.heatmap-cell[data-score="1"] { background: #e6d4c2; }
.heatmap-cell[data-score="2"] { background: #e0c4a8; }
.heatmap-cell[data-score="3"] { background: #d9a441; color: #fff; }
.heatmap-cell[data-score="4"] { background: #c25e3a; color: #fff; }
.heatmap-cell[data-score="5"] { background: #8b3a1f; color: #fff; }
.heatmap-cell .month-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
  display: none;
}
.empty-state.visible { display: block; }
.empty-state h3 { margin: 0 0 8px; color: var(--ink); }

/* Plan */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  align-content: start;
}
.plan-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}
.plan-tag.best { background: #e1edda; color: #3a5a2e; }
.plan-tag.rest { background: #dbe7f0; color: #2e4a6a; }
.plan-tag.social { background: #f5e3d2; color: #7a4a1e; }
.plan-card h3 { margin: 4px 0 0; font-size: 18px; }
.plan-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.worksheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.worksheet h3 { margin: 0 0 8px; }
.worksheet p { color: var(--ink-soft); margin: 0 0 16px; font-size: 14px; }
.worksheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.worksheet-table th, .worksheet-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.worksheet-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Guide */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.guide-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.guide-block h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--ink);
}
.guide-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.cta-band h3 { margin: 0; font-size: 22px; }
.cta-band p { margin: 0 0 12px; opacity: 0.95; }
.cta-band .btn-primary { background: #fff; color: var(--accent); }
.cta-band .btn-primary:hover { background: #f5f5f5; color: var(--accent); }

/* Footer */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 40px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-row p { margin: 0; }
.footer-row nav { display: flex; gap: 16px; flex-wrap: wrap; }
.muted { opacity: 0.7; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 220px; }
  .tracker-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .heatmap { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 520px) {
  .heatmap { grid-template-columns: repeat(4, 1fr); }
  .hero-stats { flex-direction: column; gap: 12px; }
  .header-row { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .map-controls, .hero-actions, .form-actions, .cta-band, .btn { display: none !important; }
  body { background: #fff; }
  section { border: none; padding: 20px 0; }
  .entry-form, .plan-card, .guide-block, .worksheet, .map-table-wrap { box-shadow: none; border: 1px solid #ccc; }
}



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