/* Flero countdown — stonowany układ, kolory z brand.md */

:root {
  --font: Inter, 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.25s;
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f6fa;
  --fg: #001f3a;
  --fg-soft: rgba(0, 31, 58, 0.68);
  --fg-muted: rgba(0, 31, 58, 0.45);
  --accent: #1d3ab5;
  --cta: #ff8300;
  --line: rgba(0, 31, 58, 0.08);
  --btn-hover: rgba(0, 31, 58, 0.06);
  --focus: 0 0 0 2px #fff, 0 0 0 4px rgba(29, 58, 181, 0.45);
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0a0e14;
  --fg: #eef1f6;
  --fg-soft: rgba(238, 241, 246, 0.75);
  --fg-muted: rgba(238, 241, 246, 0.45);
  --accent: #7b93f0;
  --cta: #ff9a45;
  --line: rgba(255, 255, 255, 0.08);
  --btn-hover: rgba(255, 255, 255, 0.06);
  --focus: 0 0 0 2px #0a0e14, 0 0 0 4px rgba(123, 147, 240, 0.5);
}

@media (prefers-color-scheme: dark) {
  html[data-theme='system'] {
    color-scheme: dark;
    --bg: #0a0e14;
    --fg: #eef1f6;
    --fg-soft: rgba(238, 241, 246, 0.75);
    --fg-muted: rgba(238, 241, 246, 0.45);
    --accent: #7b93f0;
    --cta: #ff9a45;
    --line: rgba(255, 255, 255, 0.08);
    --btn-hover: rgba(255, 255, 255, 0.06);
    --focus: 0 0 0 2px #0a0e14, 0 0 0 4px rgba(123, 147, 240, 0.5);
  }
}

@media (prefers-color-scheme: light) {
  html[data-theme='system'] {
    color-scheme: light;
    --bg: #f5f6fa;
    --fg: #001f3a;
    --fg-soft: rgba(0, 31, 58, 0.68);
    --fg-muted: rgba(0, 31, 58, 0.45);
    --accent: #1d3ab5;
    --cta: #ff8300;
    --line: rgba(0, 31, 58, 0.08);
    --btn-hover: rgba(0, 31, 58, 0.06);
    --focus: 0 0 0 2px #fff, 0 0 0 4px rgba(29, 58, 181, 0.45);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 20px 24px 0;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
}

.top__brand {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}

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

.top__brand-dot {
  color: var(--cta);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--fg-soft);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.theme-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.theme-btn__icon {
  display: block;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  padding: 48px 24px 40px;
  width: 100%;
}

.main__title {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.main__lead {
  margin: 0 0 28px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 32ch;
}

.main__status {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.main__dots {
  margin: 6px 0 0;
  min-height: 1.25em;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  opacity: 0.75;
}

.foot {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.foot__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .top {
    padding-left: 32px;
    padding-right: 32px;
  }

  .main {
    padding-left: 32px;
    padding-right: 32px;
  }
}
