/* ============================================================
   Time-Check - shared styles (tokens, base, buttons, pills, footer)
   Tokens from the design handoff (README.md).
   ============================================================ */

:root {
  --bg: #F7F9FC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --border-subtle: #EEF2F7;
  --ink: #0F172A;
  --body: #334155;
  --secondary: #64748B;
  --muted: #94A3B8;
  --blue: #4566E0;
  --blue-hover: #3853C4;
  --blue-tint: #EAF0FB;
  --green: #1FA86F;
  --green-tint: #E5F6EC;
  --warn: #C2410C;
  --navy: #121A33;
  --grad: linear-gradient(135deg, #3B82F6 0%, #34D399 100%);
  --shadow-near: 0 1px 2px rgba(15, 23, 42, 0.04);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

/* Author styles must never resurrect [hidden] elements */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--card);
  color: var(--body);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
::selection { background: var(--blue-tint); }

img { max-width: 100%; }

h1, h2, h3, p { margin: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-hover); color: #FFFFFF; }
.btn-secondary {
  background: var(--card);
  color: var(--body);
  font-weight: 500;
  border-color: var(--border);
  padding: 9px 18px;
}
.btn-secondary:hover { background: var(--border-subtle); color: var(--ink); }

/* ---- Language switcher pills ---- */
.lang-pills {
  display: flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg);
}
.lang-pill {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 140ms ease, background 140ms ease;
}
.lang-pill:hover { color: var(--secondary); }
.lang-pill.is-active { background: #FFFFFF; color: var(--ink); }
.lang-pill.is-active:hover { color: var(--ink); }

/* ---- Kickers (uppercase section labels) ---- */
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---- Shared footer (landing + signup) ---- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { border-radius: 6px; display: block; }
.footer-brand .footer-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.footer-brand .footer-tagline { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--secondary); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 13px; color: var(--muted); }

@media (max-width: 767px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px 20px;
    text-align: center;
  }
  .footer-brand { gap: 9px; }
  .footer-brand .footer-tagline { display: none; }
  .footer-tagline-mobile { font-size: 12.5px; color: var(--muted); }
  .footer-links { justify-content: center; gap: 18px; flex-wrap: wrap; }
  .footer-copy { font-size: 12.5px; }
}
@media (min-width: 768px) {
  .footer-tagline-mobile { display: none; }
}

/* Visually hidden (for accessible labels) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
