/* Timer Board - legal / marketing shell (timerboard.app) */

:root {
  --bg: #eef2f3;
  --surface: #fffcf7;
  --text: #1a1d21;
  --muted: #3d5a73;
  --primary: #007c91;
  --primary-hover: #006578;
  --outline: #c5ced4;
  --danger: #b33b2e;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --container: min(720px, 100% - 2rem);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  background: var(--bg);
}

h1, h2, h3, .brand-text {
  color: var(--text);
  font-family: var(--display);
  font-weight: 600;
}

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

img { max-width: 100%; height: auto; display: block; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--outline);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  width: var(--container);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  border-radius: 8px;
}

.brand-text {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--primary);
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  width: var(--container);
  margin-inline: auto;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--primary);
}

.page-legal,
.page-home,
.page-support {
  padding: 2rem 0 1rem;
}

.prose h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.65rem;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.45rem;
}

.page-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.prose p, .prose li {
  color: var(--muted);
}

.prose strong {
  color: var(--text);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--outline);
  margin: 2rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--outline);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
  background: var(--surface);
}

.prose th {
  color: var(--text);
  font-weight: 700;
}

.prose ul, .prose ol {
  padding-left: 1.25rem;
}

.prose code {
  font-size: 0.9em;
  background: #e4eaec;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--outline);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.5rem;
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 1.25rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.card .card-link {
  margin-top: 0.75rem;
}

.page-back {
  margin-top: 2.5rem;
}

.support-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.support-list li {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}
