/* The calculator, Christmas countdown and press pages (on top of style.css, which
   build.py inlines into them). Same tokens and type as the home page. */

.page-hero {
  padding: 150px 0 40px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 134, 44, 0.07) 0%, transparent 60%);
}
.page-hero h1 { margin-bottom: 20px; }
.page-hero .lead {
  max-width: 560px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-secondary);
}
.page-section { padding: 70px 0; }
.page-section .section-header { margin-bottom: 48px; }
.page-section .section-header p {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* A panel on the dark page: the calculator, the countdown, the press facts. */
.panel {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  text-align: center;
}

/* CALCULATOR */
.date-field { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.date-field label { font-size: 13px; color: var(--text-secondary); }
.date-field input {
  color-scheme: dark;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--text);
  outline: none;
  min-width: 220px;
}
.date-field input:focus { border-color: rgba(200, 134, 44, 0.5); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 7px 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--amber); color: var(--amber-light); }

.result { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--border); }
.result-number {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(72px, 14vw, 128px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--amber);
  font-variant-numeric: lining-nums tabular-nums;
}
.result-unit {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}
.result-label { margin-top: 8px; color: var(--text-secondary); }
.result-details {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.result-details li {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-secondary);
}
.result-share { margin-top: 22px; font-size: 13px; color: var(--text-muted); text-align: center; }
.result-share button {
  background: none;
  border: none;
  font: inherit;
  color: var(--amber);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CHRISTMAS: the ticking line and the other holidays. */
.ticker { margin-top: 14px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.holiday-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.holiday {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.holiday-days {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  color: var(--amber);
  font-variant-numeric: lining-nums tabular-nums;
}
.holiday h3 { margin-top: 12px; font-size: 15px; }
.holiday p { margin-top: 4px; font-size: 13px; color: var(--text-muted); }

/* Text beside a screenshot. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.split img { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.split h2 { margin-bottom: 18px; }
.split p, .prose p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }
.steps { margin: 8px 0 0 20px; color: var(--text-secondary); line-height: 1.75; }
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps strong, .prose strong { color: var(--text); font-weight: 600; }

/* PRESS */
.prose { max-width: 680px; margin: 0 auto; }
.prose h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 56px 0 18px; }
.prose ul { margin: 0 0 16px 20px; color: var(--text-secondary); line-height: 1.75; }
a.inline { color: var(--amber-light); text-decoration: underline; text-underline-offset: 3px; }
.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts th, .facts td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.facts th { width: 38%; font-weight: 500; color: var(--text-muted); padding-right: 16px; }
.facts td { color: var(--text); }
.press-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; margin: 8px 0 24px; }
.press-shots img { width: 100%; height: auto; border-radius: 18px; background: var(--surface); }

@media (max-width: 768px) {
  .page-hero { padding: 116px 0 24px; }
  .page-section { padding: 50px 0; }
  .panel { padding: 28px 20px; border-radius: 22px; }
  .holiday-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .steps { text-align: left; }
  .press-shots { grid-template-columns: 1fr 1fr; }
}
