/* Czech for Americans website. Colors match the app logo. */
:root {
  --blue: #1D4B8E;
  --red: #D7141A;
  --gold: #C9A23A;
  --ink: #1E2A3A;
  --muted: #5B6676;
  --line: #DCE3EE;
  --soft: #F3F6FB;
  --on-blue: #D5E1F2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
a { color: var(--blue); }
a:hover { color: var(--red); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Header */
.hero { background: var(--blue); color: #FFFFFF; padding: 48px 0 40px; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.logo-circle {
  width: 180px; height: 180px; border-radius: 50%; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.logo-circle img { width: 130px; height: auto; }
.site-name { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.01em; margin-top: 8px; }
.hero .lead { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; max-width: 40rem; color: #E3ECF8; }
.hero .sub { font-size: 16px; color: #BFD0E8; }

.bar { background: var(--blue); color: #FFFFFF; padding: 20px 0; }
.bar .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; font-size: 20px; font-weight: 800; }
.brand:hover { color: #FFFFFF; }
.brand span.dot {
  width: 52px; height: 52px; border-radius: 50%; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.brand img { width: 38px; height: auto; }

nav.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero nav.menu { margin-top: 18px; }
nav.menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: rgba(255,255,255,0.14); color: #FFFFFF;
  text-decoration: none; font-weight: 700;
}
nav.menu a:hover { background: rgba(255,255,255,0.24); color: #FFFFFF; }
nav.menu a.on, nav.menu a.cta { background: #FFFFFF; color: var(--blue); font-weight: 800; }

.stripe { display: flex; height: 8px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: #FFFFFF; }
.stripe span:nth-child(2) { background: var(--red); }
.stripe span:nth-child(3) { background: var(--gold); }

/* Sections */
section { padding: 64px 0; }
section.soft { background: var(--soft); }
section.blue { background: var(--blue); color: #FFFFFF; }
section.blue .muted { color: var(--on-blue); }
.title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; }
.title + p { margin-top: 8px; }
.page-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.k-red { color: #A50F14; }
.k-blue { color: var(--blue); }
.k-gold { color: #7A5F12; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.tight { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mt { margin-top: 32px; }

.card {
  border-radius: 16px; background: #FFFFFF; box-shadow: 0 4px 18px rgba(29,75,142,0.10);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; border-top: 5px solid var(--blue);
}
.card.red { border-top-color: var(--red); }
.card.gold { border-top-color: var(--gold); }
.card h3 { font-size: 21px; font-weight: 800; }
.card p { color: var(--muted); }

.glass { background: rgba(255,255,255,0.10); border-radius: 16px; padding: 22px; }
.glass h3 { font-size: 18px; font-weight: 800; }
.glass p { color: var(--on-blue); margin-top: 6px; }

/* Two-column rows */
.row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.row.flip { flex-wrap: wrap-reverse; }
.row > * { flex: 1 1 400px; min-width: 0; }
.row h2 { font-size: 30px; font-weight: 800; margin: 8px 0 12px; }
.row p { color: var(--muted); line-height: 1.6; }

/* Mastery steps */
.steps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.steps .arrow { color: #8A95A5; font-size: 22px; }
.step { padding: 14px 22px; border-radius: 14px; background: #FFFFFF; border: 1.5px solid var(--line); font-weight: 700; }
.step small { font-weight: 400; font-size: inherit; }
.step.s2 { border-color: var(--blue); color: var(--blue); }
.step.s3 { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.step.s4 { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack .step { text-align: left; }
.stack .s1 { background: var(--soft); border-color: var(--soft); }
.stack .s2 { background: #E3EBF6; border-color: #E3EBF6; color: var(--ink); }

.tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { padding: 18px; border-radius: 14px; background: #FFFFFF; border: 1.5px solid var(--line); font-weight: 800; }
.tile.on { background: var(--red); border-color: var(--red); color: #FFFFFF; }

.meter { border-radius: 18px; border: 1.5px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.meter b { margin-top: 6px; }
.meter .track { height: 10px; border-radius: 5px; background: #E6E8EC; }
.meter .fill { height: 10px; border-radius: 5px; background: var(--blue); }
.meter .fill.low { background: var(--red); }

/* Story cards */
.story { background: #FFFFFF; color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
.story .cz { font-size: 21px; line-height: 1.6; margin-top: 10px; }
.story .en { font-size: 15px; color: var(--muted); margin-top: 12px; }
.pair { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.pair > * { flex: 1 1 420px; min-width: 0; }
.num { font-size: 34px; font-weight: 800; }

/* Feed cards */
.feed-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 32px; }
.feed-col { border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.t-red { background: #FDECEC; }
.t-blue { background: #E8EEF7; }
.t-gold { background: #FBF4E2; }
.feed-item {
  display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 72px; padding: 16px;
  border-radius: 12px; border: none; background: #FFFFFF; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.feed-item:hover { box-shadow: 0 4px 14px rgba(29,75,142,0.15); }
.feed-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.feed-cards .feed-item { min-height: 150px; padding: 22px; background: transparent; }
.feed-cards .feed-item:hover { background: rgba(255,255,255,0.5); }
.feed-item .meta { font-size: 13px; font-weight: 700; }
.feed-item .head { font-size: 18px; font-weight: 700; color: var(--ink); }
.feed-item .where { font-size: 14px; color: var(--muted); }
.feed-empty { color: var(--muted); font-size: 15px; padding: 8px 0; }

/* Get the app */
.get { background: var(--red); color: #FFFFFF; text-align: center; padding: 64px 0; }
.get .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.get .note { font-size: 15px; color: #FFE3E4; }
.play {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 28px;
  border-radius: 14px; background: #111111; color: #FFFFFF; text-decoration: none;
}
.play:hover { color: #FFFFFF; background: #000000; }
.play .lbl { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.play .lbl small { font-size: 12px; }
.play .lbl b { font-size: 20px; font-weight: 800; }

footer { background: var(--blue); padding: 24px 20px; text-align: center; font-size: 14px; }
footer a { color: #FFFFFF; }
footer a:hover { color: #FFE3E4; }

/* Install prompt */
dialog.install {
  border: none; border-radius: 22px; padding: 32px; max-width: 420px; width: calc(100% - 40px);
  text-align: center; color: var(--ink);
}
dialog.install::backdrop { background: rgba(14,22,38,0.55); }
dialog.install .box { display: flex; flex-direction: column; gap: 14px; align-items: center; }
dialog.install img { width: 64px; height: auto; }
dialog.install h2 { font-size: 22px; font-weight: 800; }
dialog.install .go {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; width: 100%;
  border-radius: 14px; background: var(--blue); color: #FFFFFF; text-decoration: none; font-weight: 800;
}
dialog.install .later {
  min-height: 44px; border: none; background: none; color: var(--muted); font: inherit; cursor: pointer;
}
