:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --cream: #f5f0e6;
  --ink: #251f1b;
  --muted: #665b52;
  --wine: #942d34;
  --wine-hover: #74232a;
  --line: #ded4c8;
  --soft: #efe8dc;
  --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: #eae6df; color: var(--ink); font: 400 17px/1.65 var(--font); }
.site-frame { width: min(100%, 1380px); margin-inline: auto; min-height: 100vh; background: var(--paper); border-inline: 1px solid #d0c8bc; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--wine); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: #e7c4ba; color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.2; letter-spacing: -.025em; }
h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.015em; }
sup { color: var(--wine); font-size: .7em; line-height: 0; margin-left: 3px; }
sup a { text-decoration: none; }
.container { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 52px; }
.small-rule { display: block; width: 48px; height: 2px; margin-top: 20px; background: var(--wine); }
.eyebrow { color: var(--wine); font-size: 12px; font-weight: 600; line-height: 1.6; letter-spacing: .09em; text-transform: uppercase; }
.serif-copy { font: 400 21px/1.55 var(--font); }
.claim { display: inline-block; padding: 22px 26px; border-radius: 4px 24px 24px 24px; background: var(--wine); color: #fff9f1; font: 700 26px/1.4 var(--font); letter-spacing: -.02em; }
.skip-link { position: absolute; z-index: 40; top: 10px; left: 12px; padding: 10px 16px; background: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { --header-expanded-height: 88px; --header-height: var(--header-expanded-height); --header-motion: 300ms ease-in-out; position: sticky; top: 0; z-index: 30; }
.header-surface { position: relative; background: #fcfaf6; border-bottom: 1px solid var(--line); pointer-events: auto; transition: box-shadow var(--header-motion); }
.header-inner { display: flex; gap: 24px; align-items: center; min-height: 88px; }
/* Stálé místo hlavičky zabrání posunu obsahu během animace její viditelné části. */
.js .site-header { height: calc(var(--header-expanded-height) + 1px); pointer-events: none; }
.js .header-inner { height: var(--header-height); min-height: 0; padding-block: 0; transition: height var(--header-motion); }
.brand { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; white-space: nowrap; font: 700 22px/1.2 var(--font); }
.brand img { flex-shrink: 0; width: 56px; height: 56px; object-fit: contain; }
.site-header .brand img { transition: width var(--header-motion), height var(--header-motion); }
.site-header.is-compact { --header-height: 64px; }
.site-header.is-compact .header-surface { box-shadow: 0 4px 18px #251f1b14; }
.site-header.is-compact .brand img { width: 38px; height: 38px; }
.navigation { display: flex; gap: 24px; align-items: center; margin-left: auto; }
.navigation a { font-size: 14px; font-weight: 500; text-decoration: none; padding-block: 12px; }
.navigation a:hover { color: var(--wine); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 24px; background: var(--wine); color: #fff9f1; border-radius: 6px; font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .18s; }
.button:hover { background: var(--wine-hover); }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; padding: 10px; border-radius: 6px; }
.language-switcher { position: relative; flex-shrink: 0; }
.language-switcher summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; cursor: pointer; list-style: none; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.language-switcher[open] summary::after { transform: translateY(2px) rotate(225deg); }
.language-code { display: none; }
.language-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 2; width: 240px; max-height: min(520px, calc(100dvh - 100px)); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fcfaf6; box-shadow: 0 8px 24px #251f1b1a; }
.language-menu ul { list-style: none; margin: 0; padding: 0; }
/* Alignment follows the page direction, independently of each label's script. */
html[dir="rtl"] { --language-text-align: right; }
.language-menu a, .language-menu li > span { display: block; padding: 8px 12px; font-size: 15px; text-align: var(--language-text-align, left); }
.language-menu a { border-radius: 4px; text-decoration: none; }
.language-menu a:hover, .language-menu a[aria-current="page"] { background: var(--soft); color: var(--wine); }
.language-menu a[aria-current="page"] { font-weight: 700; }
.language-menu [aria-disabled="true"] { color: var(--muted); opacity: .65; }
.language-menu p { margin-top: 8px; padding: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.language-suggestion { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; font-size: 15px; }
.suggested-language { color: var(--wine); font-weight: 700; }
.keep-language { padding: 8px 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }

.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.hero-copy { position: relative; z-index: 1; padding-block: 46px; }
h1 { font-size: clamp(44px, 4.4vw, 64px); line-height: 1.1; letter-spacing: -.035em; margin: 18px 0 22px; }
.lead { max-width: 490px; font: 400 21px/1.55 var(--font); }
.hero-art { position: relative; min-height: 580px; height: 100%; }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Approved matte shell + island D. One shared silhouette; no independent black backing.
   Page SVGs preserve screenshot proportions, trim light edge pixels and extend each menu. */
.screen-frame { position: relative; aspect-ratio: 308 / 545; filter: drop-shadow(0 8px 10px #392b2229); }
.screen-frame::after { content: ""; position: absolute; inset: 0; background: url("../images/phone-frame-d.svg?v=m1") center / 100% 100% no-repeat; pointer-events: none; }
.screen-frame .app-screen { display: block; width: 100%; height: auto; border: 0; box-shadow: none; }
.hero-screen { position: absolute; z-index: 2; width: min(47%, 286px); left: 14%; bottom: 36px; }
.store-links { --badge-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 23px; padding-block: 11px; }
.store-link { display: block; flex-shrink: 0; }
.store-link img { max-width: none; width: auto; height: var(--badge-height); }

.intro { background: #f0eadd; padding-block: 38px; }
.intro-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.intro-copy .serif-copy { margin-top: 18px; max-width: 500px; }
.olive-block { position: relative; display: grid; }
.olive-block img { width: 100%; }
.intro-claim { position: relative; justify-self: end; max-width: 340px; margin-top: 10px; text-wrap: balance; }
.intro-with-video .olive-block { display: none; }
.intro-with-video .intro-claim { margin-top: 26px; }
.intro-video { min-width: 0; }
.intro-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 200px; border: 0; border-radius: 16px; background: #171411; box-shadow: 0 12px 30px #392b2224; }

.purpose-copy { display: grid; gap: 16px; max-width: 1000px; margin-top: 24px; font-size: 19px; line-height: 1.7; }

.features { padding-top: 32px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 66px; padding: 0; margin: 26px 0 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; line-height: 1.5; }
.feature-list img { flex: 0 0 28px; width: 28px; height: 28px; filter: invert(22%) sepia(40%) saturate(2250%) hue-rotate(319deg) brightness(86%) contrast(84%); }
.feature-notes { display: grid; gap: 6px; margin-top: 22px; font-size: 12px; line-height: 1.65; color: var(--muted); }

.gallery { background: var(--cream) url("../images/gallery-scene.webp") center / cover no-repeat; padding-block: 38px; }
.gallery-inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: center; }
.gallery-copy { align-self: start; padding-top: 10px; }
.gallery-copy .serif-copy { margin-top: 20px; }
.screenshots { display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.screenshots figure { margin: 0; flex: 1; max-width: 248px; min-width: 0; }
.gallery-claim { margin-top: 28px; }

.examen-list { columns: 3; column-gap: 42px; list-style: none; padding: 0; margin: 26px 0 0; counter-reset: examen; }
.examen-list li { counter-increment: examen; position: relative; break-inside: avoid; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.examen-list li::before { content: counter(examen, decimal-leading-zero); position: absolute; top: 12px; left: 0; color: var(--wine); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.examen-credit { margin-top: 24px; max-width: 850px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.steps { padding-top: 18px; }
.step-list { list-style: none; padding: 0; margin: 22px 0 0; }
.step-list li { display: grid; grid-template-columns: 50px 228px 1fr; align-items: start; gap: 22px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.step-number { display: block; width: 40px; height: 40px; }
.step-list h3 { padding-top: 4px; }
.step-list p { font-size: 16px; line-height: 1.7; }
.source { margin-top: 18px; text-align: right; font-size: 12px; color: var(--muted); }
.source a { display: inline-flex; gap: 3px; align-items: center; }

.languages { background: #f0eadd; border-top: 1px solid var(--line); }
.languages-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.languages h2 { margin-top: 12px; }
.language-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 30px; }
.language-list li { padding: 10px 0; border-bottom: 1px solid #dcd1c0; font-size: 16px; font-weight: 500; text-align: var(--language-text-align, left); }

.call-to-action { background: var(--wine) url("../images/gallery-scene.webp") center 62% / cover no-repeat; background-blend-mode: multiply; color: #fff9f1; text-align: center; padding-block: 48px; }
.call-to-action h2 { font-size: clamp(32px, 3.5vw, 46px); }
.call-to-action .store-links { justify-content: center; margin-top: 16px; }
.call-to-action a:focus-visible { outline-color: #fff9f1; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 28px; align-items: center; padding-block: 28px 24px; }
.site-footer .brand { font-size: 22px; }
.site-footer .brand img { width: 48px; height: 48px; }
.copyright { flex-basis: 100%; color: var(--muted); font-size: 12px; text-align: center; }
.copyright-with-contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: .3em; line-height: 1.5; }
.footer-contact { display: flex; align-items: center; gap: 0.2em; }
.footer-email { display: flex; align-items: center; gap: 3px; color: inherit; text-decoration: none; }
.footer-email svg { display: block; width: 1em; height: 1em; flex: none; }
.footer-email:hover { color: var(--wine); text-decoration: underline; }
.back-to-top { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; text-decoration: none; }
.back-to-top:hover { color: var(--wine); text-decoration: underline; }

@media (max-width: 1380px) {
  .site-frame { border-inline: 0; }
}

@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 18px; }
  .brand { font-size: 20px; gap: 10px; }
  .brand img { width: 48px; height: 48px; }
  .navigation { gap: 16px; }
  .navigation a { font-size: 13px; }
  .header-download { padding-inline: 19px; }
  .hero-art { min-height: 540px; }
  h1 { font-size: 50px; }
  .lead { font-size: 20px; }
  .hero-screen { left: 12%; width: min(55%, 277px); bottom: 38px; }
  .intro-inner { gap: 36px; }
  .feature-list { column-gap: 36px; }
  .gallery-inner { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
  .examen-list { column-gap: 28px; }
  .step-list li { grid-template-columns: 42px 190px 1fr; gap: 18px; }
  .step-list h3 { font-size: 22px; }
  .languages-inner { grid-template-columns: 1fr 1.7fr; gap: 34px; }
  .language-list { column-gap: 18px; }
}

@media (max-width: 1100px) {
  .site-header { --header-expanded-height: 80px; }
  .header-inner { flex-wrap: wrap; padding-block: 12px; min-height: 80px; }
  .language-switcher { margin-left: auto; }
  .navigation { order: 4; flex-basis: 100%; justify-content: space-between; margin-left: 0; }
  .js .navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fcfaf6; border-bottom: 1px solid var(--line); padding: 14px 32px; gap: 4px; flex-direction: column; align-items: stretch; box-shadow: 0 8px 18px #251f1b0a; }
  .js .navigation.is-open { display: flex; }
  .js .navigation a { font-size: 16px; padding: 10px 0; }
  .js .menu-toggle { display: block; }
}

@media (max-width: 900px) {
  .hero .hero-inner { width: 100%; grid-template-columns: 1fr; gap: 0; }
  .hero > .hero-scene { display: none; }
  h1 { font-size: 43px; }
  .hero-copy { padding: 34px 32px 24px; background: var(--paper); }
  .eyebrow { font-size: 11px; }
  .hero-art { min-height: 0; height: 430px; background: var(--cream) url("../images/hero-scene-books.webp") right center / cover no-repeat; }
  .hero-screen { width: 218px; left: 47%; bottom: 20px; }
  .hero-copy h1 { max-width: 600px; }
  .hero-copy .lead { max-width: 620px; }
  .intro-inner { gap: 24px; }
  .serif-copy { font-size: 20px; }
  .feature-list li { font-size: 16px; gap: 14px; }
  .gallery-inner { grid-template-columns: 1fr; gap: 28px; }
  .gallery-copy { display: grid; grid-template-columns: minmax(0, 1fr) 250px; column-gap: 32px; padding-top: 0; }
  .gallery-copy h2, .gallery-copy .small-rule, .gallery-copy .serif-copy { grid-column: 1; }
  .gallery-claim { grid-column: 2; grid-row: 1 / 4; align-self: center; margin-top: 0; }
  .examen-list { columns: 2; column-gap: 32px; }
  .step-list li { grid-template-columns: 42px 1fr; row-gap: 10px; }
  .step-list p { grid-column: 2; }
  .languages-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 650px) {
  .container { width: calc(100% - 44px); }
  .section { padding-block: 36px; }
  .site-header { --header-expanded-height: 74px; }
  .header-inner { gap: 8px; min-height: 74px; }
  .site-header.is-compact { --header-height: 60px; }
  .site-header.is-compact .brand img { width: 34px; height: 34px; }
  .brand { font-size: 20px; }
  .brand img { width: 42px; height: 42px; }
  .site-header .brand { flex: 1; min-width: 0; white-space: normal; font-size: 18px; gap: 8px; }
  .header-download { display: none; }
  .language-switcher { margin-left: 0; }
  .language-name, .language-switcher summary img { display: none; }
  .language-code { display: inline; }
  .language-menu { right: 0; width: min(280px, calc(100vw - 44px)); }
  .js .language-menu { right: -54px; }
  .navigation { flex-wrap: wrap; justify-content: flex-start; column-gap: 22px; }
  .js .navigation { padding-inline: 22px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 30px 22px 20px; }
  .hero .eyebrow { max-width: 330px; font-size: 10px; letter-spacing: .07em; }
  h1 { font-size: clamp(35px, 10vw, 52px); margin: 16px 0 18px; }
  .lead { font-size: 19px; line-height: 1.55; max-width: 480px; }
  .store-links { --badge-height: 40px; gap: 20px; padding-block: 10px; }
  .hero-copy .store-links { margin-top: 16px; }
  .hero-art { min-height: 0; height: auto; aspect-ratio: 1.16; margin-top: 0; background-position: right center; }
  .hero-screen { width: 42%; left: 28%; bottom: 7%; max-width: 273px; }
  .intro-inner { grid-template-columns: 1fr; gap: 18px; }
  h2 { font-size: 30px; }
  .intro-copy .serif-copy { margin-top: 14px; }
  .small-rule { margin-top: 16px; width: 40px; }
  .olive-block { max-width: 430px; width: 100%; justify-self: end; }
  .claim { font-size: 25px; }
  .intro-claim { max-width: min(100%, 320px); margin-top: 20px; }
  .purpose-copy { font-size: 17px; gap: 14px; margin-top: 20px; }
  .features { padding-top: 24px; }
  .feature-list { grid-template-columns: 1fr; margin-top: 20px; }
  .feature-list li { padding: 14px 0; font-size: 16px; gap: 16px; }
  .feature-list img { width: 25px; height: 25px; flex-basis: 25px; }
  .feature-notes { margin-top: 18px; font-size: 12px; gap: 9px; }
  .gallery { background-position: center bottom; }
  .gallery-inner { grid-template-columns: 1fr; gap: 28px; }
  .gallery-copy { display: block; }
  .gallery-copy .serif-copy { margin-top: 16px; max-width: 410px; }
  .gallery-claim { margin-top: 24px; }
  .screenshots { flex-direction: column; align-items: center; gap: 26px; }
  .screenshots figure { flex: none; width: min(100%, 277px); max-width: 277px; }
  .examen-list { columns: 1; margin-top: 20px; }
  .examen-list li { font-size: 15px; padding-block: 10px; }
  .examen-list li::before { top: 11px; }
  .steps { padding-top: 10px; }
  .step-list { margin-top: 14px; }
  .step-list li { gap: 12px; padding-block: 22px; grid-template-columns: 40px 1fr; }
  .step-list h3 { font-size: 23px; padding-top: 3px; }
  .step-list p { grid-column: 1 / -1; font-size: 16px; line-height: 1.7; }
  .source { text-align: left; }
  .languages-inner { gap: 22px; }
  .languages .eyebrow { font-size: 11px; }
  .language-list { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .language-list li { font-size: 15px; padding-block: 9px; }
  .call-to-action { padding-block: 36px; }
  .call-to-action h2 { font-size: 32px; }
  .site-footer { min-height: 122px; padding-block: 24px; flex-wrap: wrap; gap: 20px; }
  .site-footer .brand { font-size: 20px; }
  .site-footer .brand img { width: 42px; height: 42px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 36px); }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .menu-toggle { padding: 8px; }
  .hero-copy { padding-inline: 18px; }
  h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
