/* Czcionki -- self-host (kopia deklaracji z web/src/fonts.css, tylko latin + latin-ext, kroje proste). */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(fonts/nunito-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(fonts/nunito-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokeny -- kopia z web/src/styles.css :root (tylko używane). */
:root {
  --brand: #3cad38;
  --primary: #2e7d32;
  --primary-hover: #1b5e20;
  --primary-light: #e8f5e9;
  --primary-border: #a5d6a7;
  --bg-color: #f3f7f3;
  --surface: #ffffff;
  --text-main: #0b1f47;
  --text-muted: #5e6e7e;
  --text-inverse: #ffffff;
  --border-color: #d9e5da;
  --thread: #3d5a99;
  --thread-bg: #e6ecf8;
  --thread-text: #22396e;
  --zone-statement-bg: #f7f0e1;
  --zone-statement-text: #6b4f1d;
  --key-mode: #6a4c93;
  --navy: #0b1f47;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 3px rgba(11, 31, 71, 0.08);
  --font-body:
    'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Nunito Variable', var(--font-body);
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--bg-color);
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.625rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
}

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

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

a:focus-visible,
video:focus-visible {
  outline: 3px solid var(--thread);
  outline-offset: 2px;
}

.site-header,
main,
.site-footer {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--text-main);
  text-decoration: none;
}

.header-link {
  font-weight: 600;
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding-block: 1.5rem 2rem;
}

.lead {
  font-size: 1.125rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.5rem;
  background-color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--text-inverse);
}

.cta-secondary {
  font-weight: 600;
}

.note {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.hero-video {
  margin: 0;
}

.hero-video .video--portrait {
  display: none;
}

.hero-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--text-main);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.hero-video figcaption {
  margin-top: 0.375rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.section {
  padding-block: 1.75rem;
  border-top: 1px solid var(--border-color);
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1rem 1rem 0.25rem 3.5rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: 50%;
  color: var(--primary-hover);
  font-family: var(--font-display);
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1rem 1.25rem 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.faq {
  margin: 0;
}

.faq > div {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.faq dt {
  font-family: var(--font-display);
  font-weight: 800;
}

.faq dd {
  margin: 0.25rem 0 0;
}

.final-cta {
  text-align: center;
}

.site-footer {
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  h1 {
    font-size: 3rem;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
    padding-block: 3rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (orientation: portrait) and (max-width: 899px) {
  .hero-video .video--landscape {
    display: none;
  }

  .hero-video .video--portrait {
    display: block;
    max-width: 360px;
    margin-inline: auto;
    aspect-ratio: 9 / 16;
  }

  .hero-video figcaption {
    text-align: center;
  }
}

/* Kolory ról z aplikacji dziecka (docs/design/system.md): zieleń = poprawność, granat = tutor,
   ciepły papier = treść zadania, fiolet = tryb klawiatury. Jedna definicja per rola. */
.card {
  border-top: 4px solid var(--border-color);
}
.card--check {
  border-top-color: var(--primary);
}
.card--check h3 {
  color: var(--primary-hover);
}
.card--tutor {
  border-top-color: var(--thread);
  background: var(--thread-bg);
  border-color: var(--thread-bg);
  border-top-color: var(--thread);
}
.card--tutor h3 {
  color: var(--thread-text);
}
.card--new {
  border-top-color: var(--zone-statement-text);
  background: var(--zone-statement-bg);
  border-color: var(--zone-statement-bg);
  border-top-color: var(--zone-statement-text);
}
.card--new h3 {
  color: var(--zone-statement-text);
}
.card--exam {
  border-top-color: var(--key-mode);
}
.card--exam h3 {
  color: var(--key-mode);
}
.hero-video {
  padding: 0.75rem;
  background: var(--zone-statement-bg);
  border-radius: var(--radius);
}
#autor p {
  padding: 1rem 1.25rem;
  background: var(--zone-statement-bg);
  border-left: 4px solid var(--zone-statement-text);
  border-radius: var(--radius-sm);
}
.faq {
  padding: 0.5rem 1.25rem;
  background: var(--thread-bg);
  border-radius: var(--radius);
}
.faq > div {
  border-bottom-color: rgba(61, 90, 153, 0.25);
}
.faq > div:last-child {
  border-bottom: none;
}
.faq dt {
  color: var(--thread-text);
}
.final-cta {
  margin-top: 1.75rem;
  padding: 2rem 1rem 1.75rem;
  background: var(--navy);
  border-radius: var(--radius);
  border-top: none;
  color: var(--text-inverse);
}
.final-cta .note {
  color: rgba(255, 255, 255, 0.75);
}
