/* ============================================
   TempoBiegu.pl - Global Stylesheet
   OKLCH Sporty Dark Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --bg:              oklch(0.14 0.01 220);
  --card:            oklch(0.18 0.01 220);
  --muted:           oklch(0.22 0.01 220);
  --input:           oklch(0.20 0.01 220);
  --fg:              oklch(0.98 0.01 220);
  --fg-muted:        oklch(0.70 0.02 220);
  --primary:         oklch(0.70 0.22 145);
  --primary-fg:      oklch(0.10 0.01 220);
  --accent:          oklch(0.65 0.25 35);
  --border:          oklch(0.25 0.02 220);
  --ring:            oklch(0.70 0.22 145);
  --radius:          0.75rem;
  --radius-sm:       0.5rem;
  --shadow:          0 4px 24px oklch(0 0 0 / 0.4);
  --shadow-sm:       0 2px 8px oklch(0 0 0 / 0.25);
  --transition:      0.2s ease;
  --font-heading:    'Oswald', -apple-system, sans-serif;
  --font-body:       'Inter', -apple-system, sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol { list-style: none; }

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-primary   { color: var(--primary); }
.text-accent    { color: var(--accent); }
.text-muted     { color: var(--fg-muted); }

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 4rem;
}

.section--muted {
  background-color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: oklch(0.12 0.01 220 / 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.875rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo__text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1;
}

.logo__text span {
  color: var(--primary);
}

/* Nav */
.nav { display: flex; align-items: center; gap: 0.25rem; }

.nav__link {
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.nav__link:hover,
.nav__link.active {
  color: var(--fg);
  background: var(--card);
}

.nav__link--cta {
  background: var(--primary);
  color: var(--primary-fg) !important;
  font-weight: 600;
}

.nav__link--cta:hover {
  background: oklch(0.75 0.22 145);
  color: var(--primary-fg) !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: oklch(0.15 0.01 220);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    gap: 0.25rem;
  }

  .nav.is-open { display: flex; }
  .nav__link { padding: 0.75rem 1rem; font-size: 1rem; }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(
    135deg,
    oklch(0.14 0.01 220) 0%,
    oklch(0.16 0.03 200) 50%,
    oklch(0.14 0.01 220) 100%
  );
  padding-block: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, oklch(0.70 0.22 145 / 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: oklch(0.70 0.22 145 / 0.12);
  color: var(--primary);
  border: 1px solid oklch(0.70 0.22 145 / 0.3);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__title {
  margin-bottom: 1.25rem;
  max-width: 800px;
}

.hero__title mark {
  background: none;
  color: var(--primary);
}

.hero__desc {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.875rem;
}

.stat__icon {
  color: var(--primary);
  flex-shrink: 0;
}

/* ============================================
   Calculator Card
   ============================================ */
.calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.calc-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.calc-card__subtitle {
  color: var(--fg-muted);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}

/* Quick select buttons */
.quick-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.quick-btn {
  background: var(--muted);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.quick-btn:hover,
.quick-btn.active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

/* Form groups */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .form-grid { grid-template-columns: repeat(3, 1fr); }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-family: var(--font-body);
}

.form-label .unit {
  color: var(--fg-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.input-wrap {
  display: flex;
  align-items: stretch;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-wrap:focus-within {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px oklch(0.70 0.22 145 / 0.15);
}

.input-wrap input,
.input-wrap select {
  flex: 1;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  outline: none;
  font-family: var(--font-body);
  min-width: 0;
}

.input-wrap select { cursor: pointer; }
.input-wrap select option { background: var(--card); }

.input-suffix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  color: var(--fg-muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border-left: 1px solid var(--border);
  background: var(--muted);
  letter-spacing: 0.04em;
}

/* Time input compound */
.time-input {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.time-input:focus-within {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px oklch(0.70 0.22 145 / 0.15);
}

.time-input__field {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-input__field + .time-input__field {
  border-left: 1px solid var(--border);
}

.time-input__field input {
  width: 100%;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 0.25rem 0.25rem;
  outline: none;
  text-align: center;
  font-family: var(--font-body);
}

.time-input__label {
  font-size: 0.6rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.35rem;
}

/* Output / readonly field */
.output-group {
  background: oklch(0.70 0.22 145 / 0.08);
  border: 1px solid oklch(0.70 0.22 145 / 0.3);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.output-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-body);
}

.output-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.output-group--accent {
  background: oklch(0.65 0.25 35 / 0.08);
  border-color: oklch(0.65 0.25 35 / 0.3);
}

.output-group--accent .output-label,
.output-group--accent .output-value {
  color: var(--accent);
}

/* Outputs row */
.outputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

/* Calculate button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  width: 100%;
}

.btn--primary:hover {
  background: oklch(0.75 0.22 145);
  color: var(--primary-fg);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px oklch(0.70 0.22 145 / 0.35);
}

.btn--primary:active { transform: translateY(0); }

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}

.form-status {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.form-status[hidden] {
  display: none;
}

.form-status[data-state="pending"] {
  border-color: oklch(0.70 0.22 145 / 0.25);
  background: oklch(0.70 0.22 145 / 0.08);
  color: var(--primary);
}

.form-status[data-state="success"] {
  border-color: oklch(0.70 0.22 145 / 0.35);
  background: oklch(0.70 0.22 145 / 0.12);
  color: var(--primary);
}

.form-status[data-state="error"] {
  border-color: oklch(0.65 0.25 35 / 0.35);
  background: oklch(0.65 0.25 35 / 0.12);
  color: var(--accent);
}

.btn--outline {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  background: var(--card);
  color: var(--fg);
}

/* Reset link */
.calc-reset {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
  width: 100%;
  font-family: var(--font-body);
}

.calc-reset:hover { color: var(--accent); }

/* ============================================
   Content Sections
   ============================================ */
.content-section { padding-block: 3.5rem; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.prose {
  color: var(--fg-muted);
  line-height: 1.75;
}

.prose p { margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--fg); }
.prose ul { list-style: none; padding: 0; }
.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--fg-muted);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* Feature boxes */
.feature-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition);
}

.feature-box:hover { border-color: var(--primary); }

.feature-box__icon {
  width: 48px;
  height: 48px;
  background: oklch(0.70 0.22 145 / 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-box__title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-box__desc {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Examples table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

thead { background: var(--muted); }

th, td {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}

td { color: var(--fg-muted); }

tr:last-child td { border-bottom: none; }

tr:hover td { background: oklch(0.70 0.22 145 / 0.04); color: var(--fg); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--green { background: oklch(0.70 0.22 145 / 0.15); color: var(--primary); }
.badge--orange { background: oklch(0.65 0.25 35 / 0.15); color: var(--accent); }
.badge--blue { background: oklch(0.60 0.15 240 / 0.15); color: oklch(0.70 0.15 240); }

/* ============================================
   Author Bio
   ============================================ */
.author-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .author-card { flex-direction: row; }
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-fg);
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-info { flex: 1; }

.author-name {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.author-title {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}

.author-bio {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.author-socials {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--muted);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.is-open { border-color: var(--primary); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  width: 100%;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--fg-muted);
  transition: transform var(--transition), background var(--transition);
  font-size: 1rem;
  font-style: normal;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--primary-fg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.faq-item.is-open .faq-answer {
  max-height: 600px;
}

/* ============================================
   Calculator pages — heart rate zones
   ============================================ */
.zone-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.zone-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  width: 2rem;
  flex-shrink: 0;
}

.zone-bar-wrap { flex: 1; }

.zone-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  margin-bottom: 0.25rem;
}

.zone-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--muted);
}

.zone-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.zone-hr {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  min-width: 90px;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  padding-block: 1rem;
}

.breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb__current { color: var(--fg); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: oklch(0.11 0.01 220);
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand__desc {
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links a {
  color: var(--fg-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
  text-decoration: none;
}

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

.social-icons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.social-icon {
  width: 38px;
  height: 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: all var(--transition);
  text-decoration: none;
  font-size: 1rem;
}

.social-icon:hover {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-copyright {
  color: var(--fg-muted);
  font-size: 0.8rem;
}

.footer-legal { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-legal a {
  color: var(--fg-muted);
  font-size: 0.8rem;
  text-decoration: none;
}
.footer-legal a:hover { color: var(--primary); }

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ============================================
   Info box
   ============================================ */
.info-box {
  background: oklch(0.70 0.22 145 / 0.07);
  border: 1px solid oklch(0.70 0.22 145 / 0.25);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-box strong { color: var(--primary); }

.warning-box {
  background: oklch(0.65 0.25 35 / 0.07);
  border: 1px solid oklch(0.65 0.25 35 / 0.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.warning-box strong { color: var(--accent); }

/* ============================================
   Page specific: legal/info pages
   ============================================ */
.page-hero {
  padding-block: 3rem;
  border-bottom: 1px solid var(--border);
}

.page-content {
  padding-block: 3rem;
  max-width: 780px;
}

.page-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.page-content h2:first-child { margin-top: 0; }

.page-content p,
.page-content li {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.page-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.5s ease both;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { background: white; color: black; }
}
