/* Tutinote – informační stránka. Barvy a písmo podle docs/design/tokens/tokens.css (vzhled 8B).
   Žádné skripty ani zdroje třetích stran; písmo Inter je v /fonts (OFL, viz fonts/OFL.txt). */
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/inter-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/inter-semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/inter-extrabold.woff2') format('woff2');
}

:root {
  --tn-color-bg: #eef0fa;
  --tn-color-surface: #ffffff;
  --tn-color-text: #1c1c1e;
  --tn-color-text-muted: #5c5c61;
  --tn-color-primary: #2a41e0;
  --tn-color-primary-hover: #1f31b8;
  --tn-color-on-primary: #ffffff;
  --tn-color-tint: #d6ddff;
  --tn-color-accent: #1f31b8;
  --tn-color-focus: #2a41e0;
  --tn-color-line: #e5e5ea;
  --tn-color-tile-blue: #b9c6ff;
  --tn-color-tile-yellow: #ffd84d;
  --tn-color-on-tile: #1c1c1e;
  --tn-radius-md: 12px;
  --tn-radius-lg: 16px;
  --tn-radius-xl: 22px;
  --tn-shadow-1: 0 1px 2px rgb(0 0 0 / 0.06);
  --font: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--tn-color-bg);
  color: var(--tn-color-text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--tn-color-primary);
}
a:hover {
  color: var(--tn-color-primary-hover);
}
:focus-visible {
  outline: 3px solid var(--tn-color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--tn-color-surface);
  color: var(--tn-color-text);
  padding: 10px 16px;
  border-radius: var(--tn-radius-md);
  font-weight: 600;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

.top {
  background: var(--tn-color-surface);
  border-bottom: 1px solid var(--tn-color-line);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand img {
  width: 158px;
  height: auto;
}
.top-link {
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

.hero {
  padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 7vw, 80px);
  text-align: center;
}
.pill {
  display: inline-block;
  margin: 0;
  background: var(--tn-color-tint);
  color: var(--tn-color-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  padding: 5px 16px;
}
h1 {
  margin: 18px auto 0;
  max-width: 14em;
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead {
  margin: 20px auto 0;
  max-width: 36em;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--tn-color-text-muted);
}
.cta {
  margin: 32px 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--tn-radius-md);
  background: var(--tn-color-primary);
  color: var(--tn-color-on-primary);
  font-weight: 600;
  text-decoration: none;
}
.btn:hover {
  background: var(--tn-color-primary-hover);
  color: var(--tn-color-on-primary);
}

.sec {
  padding: clamp(28px, 5vw, 56px) 0;
}
h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h3 {
  margin: 0;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.sub {
  margin: 8px 0 0;
  color: var(--tn-color-text-muted);
}

.cards,
.modes {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.modes {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.card {
  background: var(--tn-color-surface);
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow-1);
  padding: 24px;
}
.card p,
.mode p {
  margin: 8px 0 0;
}
.mode {
  border-radius: var(--tn-radius-xl);
  padding: 28px;
  color: var(--tn-color-on-tile);
  min-height: 170px;
}
.mode-a {
  background: var(--tn-color-tile-blue);
}
.mode-b {
  background: var(--tn-color-tile-yellow);
}

.pilot {
  background: var(--tn-color-primary);
  color: var(--tn-color-on-primary);
  border-radius: var(--tn-radius-xl);
  padding: clamp(28px, 5vw, 56px);
}
.pilot p {
  margin: 12px 0 0;
  max-width: 38em;
  font-size: 1.125rem;
}
.pilot .mail {
  margin-top: 24px;
}
.pilot .mail a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--tn-radius-md);
  background: var(--tn-color-surface);
  color: var(--tn-color-primary);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
.pilot .mail a:hover {
  color: var(--tn-color-primary-hover);
}
.pilot :focus-visible {
  outline-color: var(--tn-color-surface);
}

.foot {
  padding: 32px 0 calc(40px + env(safe-area-inset-bottom));
  color: var(--tn-color-text-muted);
  font-size: 0.9375rem;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  border-top: 1px solid var(--tn-color-line);
  padding-top: 24px;
}
.foot a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.operator {
  margin: 12px 0 0;
}
.privacy {
  margin-top: 20px;
  max-width: 44em;
}
.privacy h2 {
  font-size: 1rem;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--tn-color-text);
}
.privacy p {
  margin: 6px 0 0;
}

.err {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding: 64px 0;
}
.err p {
  margin: 0;
  color: var(--tn-color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
