/* DAGVIS – úvodní stránka (web/<jazyk>/). Písma jsou u nás (bez Googlu – GDPR): Archivo a Source Sans 3, licence SIL OFL (fonts/OFL-*.txt). */
@font-face { font-family: "Archivo"; src: url("/web/fonts/archivo.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/web/fonts/source-sans-3.woff") format("woff"); font-weight: 400 700; font-display: swap; }
:root {
  --bg: #FFFFFF;        /* papír aplikace */
  --card: #F5F6F4;      /* zelenkavě šedá plocha karet */
  --ink: #161A17;       /* inkoust */
  --muted: #545D57;     /* šedá s nádechem zeleně */
  --line: #E3E7E3;
  --sun: #FFC93C;       /* slunce DAGVIS */
  --sun-deep: #F2AE1C;
  --sun-soft: #FFF3CF;
  --on-sun: #161A17;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121513; --card: #1B201C; --ink: #EEF1EE; --muted: #A6B0A9; --line: #2B322D;
  --sun: #FFC93C; --sun-deep: #FFC93C; --sun-soft: #3A3115; --on-sun: #161A17; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #121513; --card: #1B201C; --ink: #EEF1EE; --muted: #A6B0A9; --line: #2B322D;
  --sun: #FFC93C; --sun-deep: #FFC93C; --sun-soft: #3A3115; --on-sun: #161A17; color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 720px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: var(--ink); text-decoration-color: var(--sun-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 2px; }


header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.wm { font-family: var(--font-display); font-size: 24px; letter-spacing: .14em; text-decoration: none; color: var(--ink); border-bottom: 4px solid var(--sun); padding-bottom: 2px; line-height: 1; }
.wm b:nth-child(1) { font-weight: 900 } .wm b:nth-child(2) { font-weight: 800 } .wm b:nth-child(3) { font-weight: 700 }
.wm b:nth-child(4) { font-weight: 400 } .wm b:nth-child(5) { font-weight: 200 } .wm b:nth-child(6) { font-weight: 100 }
.open { font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid var(--ink); border-radius: 999px; padding: 7px 16px; white-space: nowrap; }

.hero .wrap { padding-block: 28px 8px; display: grid; gap: 22px; }
.week { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.day { flex: 1; display: grid; gap: 6px; justify-items: center; height: 100%; align-content: end; }
.day i { width: 100%; max-width: 46px; border-radius: 10px; background: var(--sun); opacity: .45; height: calc(var(--h) * 92px); }
.day.today i { opacity: 1; background: var(--sun-deep); }
.day.next i { opacity: 1; background: transparent; border: 2px solid var(--line); height: 18px; }
.day b { font-size: 13px; color: var(--muted); font-weight: 600; }
.day.today b { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .day i { transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
  @keyframes grow { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
}
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 9vw, 68px); line-height: 1.02; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
/* hlavní věta (Robin 4. 11.: „musí to bít do očí“): otázka obrovsky, odpověď pod ní se žlutým zvýrazňovačem */
h1.punch { font-size: clamp(56px, 15vw, 116px); line-height: .95; letter-spacing: -.035em; }
h1.punch .q { display: block; margin-bottom: .08em; }
h1.punch .a { display: inline; font-size: .62em; line-height: 1.12; letter-spacing: -.02em; padding: 0 .12em; margin-left: -.12em; }
.lead { font-size: 21px; color: var(--muted); margin: 0; max-width: 34em; }

.waitlist { display: grid; gap: 8px; max-width: 520px; }
.waitlist small { color: var(--muted); font-size: 14px; }

section { padding-block: 44px 0; }
h2 { font-family: var(--font-display); font-weight: 750; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 14px; text-wrap: balance; }
p { margin: 0 0 14px; max-width: 36em; }

.chat { display: grid; gap: 10px; background: var(--card); border-radius: 22px; padding: 18px; max-width: 520px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 17px; line-height: 1.45; }
.me { justify-self: end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.coach { justify-self: start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.logged { display: grid; gap: 4px; margin-top: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.logged span { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); padding-top: 4px; }
.logged em { font-style: normal; color: var(--muted); white-space: nowrap; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--on-sun); font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; }
.steps b { display: block; font-size: 19px; }
.steps span { color: var(--muted); }

blockquote { margin: 18px 0; padding: 0 0 0 18px; border-left: 4px solid var(--sun); font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.3; }

.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 24px; }
.promises div { min-width: 0; }
.promises b { display: block; font-family: var(--font-display); font-weight: 750; font-size: 20px; margin-bottom: 2px; }
.promises span { color: var(--muted); font-size: 16px; }


.ducks { width: 150px; height: auto; display: block; }
.ducks .halo { stroke: var(--bg); }
.ducks .water { fill: var(--ink); }
.hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-top .week { flex: 1 1 260px; min-width: 0; }
.who { font-family: var(--font-display); font-weight: 650; font-size: 20px; margin: 0; max-width: 32em; }
.show { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 620px) { .show { grid-template-columns: 1fr; justify-items: center; } .show > div { justify-self: stretch; } }
.phone { width: 100%; max-width: 260px; border-radius: 34px; padding: 10px; background: var(--ink); box-shadow: 0 18px 40px -18px rgba(22, 26, 23, .45); }
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; }
.found { display: grid; gap: 10px; background: var(--card); border-radius: 22px; padding: 20px; }
.found .tag { justify-self: start; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.found .line { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-variant-numeric: tabular-nums; }
.found .line b { color: var(--muted); font-weight: 600; font-size: 15px; padding-top: 2px; }
.found .result { font-family: var(--font-display); font-weight: 750; font-size: 22px; line-height: 1.25; }
@media (max-width: 420px) { .found .line { grid-template-columns: 1fr; gap: 2px; } }
.faq { display: grid; gap: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 8px 0 0; color: var(--muted); }
footer { margin-top: 56px; border-top: 1px solid var(--line); }
footer .wrap { padding-block: 22px 32px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
footer .mail { user-select: all; color: var(--ink); font-weight: 600; }

.waitlist b { font-weight: 600; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 4px 0 0; list-style: none; }
.langs a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.mirror h2 { font-size: clamp(34px, 7vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; border-left: 6px solid var(--sun); padding-left: 16px; }
.mirror p { font-size: 20px; }

/* Články (scripts/web_clanky.py) */
.article .wrap { padding-block: 20px 0; }
.article h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.08; margin-bottom: 14px; }
.article h2 { font-size: 24px; margin: 34px 0 10px; }
.article .lead { margin-bottom: 10px; }
.crumb, .upd, .disc { font-size: 15px; color: var(--muted); }
.src { padding-left: 20px; font-size: 15px; color: var(--muted); } .src li { margin-bottom: 6px; overflow-wrap: anywhere; }
.cta { margin-top: 40px; background: var(--sun-soft); border-radius: 22px; padding: 20px; display: grid; gap: 12px; justify-items: start; }
.cta p { margin: 0; }
.list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.list li { display: grid; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.list b { font-family: var(--font-display); font-size: 21px; line-height: 1.25; }
.list span { color: var(--muted); font-size: 16px; }

/* Okna aplikace – pás telefonů do strany (skutečná aplikace, scripts/web_okna.py) */
.sub { color: var(--muted); font-size: 18px; margin-top: -4px; }
.okna-sec { padding-bottom: 8px; }
.okna { list-style: none; margin: 18px 0 0; padding: 4px max(16px, calc((100vw - 720px) / 2 + 16px)) 18px; display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100vw - 720px) / 2 + 16px)); scrollbar-width: thin; }
.okna li { flex: 0 0 min(64vw, 236px); scroll-snap-align: start; }
.okna figure { margin: 0; display: grid; gap: 12px; }
.okna .phone { max-width: none; border-radius: 30px; padding: 8px; background: #161A17; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(22, 26, 23, .45); }
.okna .phone img { border-radius: 23px; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
.okna figcaption { font-size: 16px; line-height: 1.4; color: var(--muted); }
.okna figcaption b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 750; font-size: 19px; margin-bottom: 2px; }
.okna li:nth-child(even) { margin-top: 28px; }   /* lehký rytmus pásu – telefony nejsou v jedné lajně jako v katalogu */

/* Děláme to jinak – účetní kniha: co se obvykle dělá je přeškrtnuté, vedle co děláme my */
.jinak h2 { font-size: clamp(34px, 7vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.ledger { margin: 22px 0 0; display: grid; }
.ledger > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4px 22px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.ledger .lh { border-top: 0; padding: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.ledger .lh span:last-child { color: var(--ink); }
.ledger dt { color: var(--muted); font-size: 17px; text-decoration: line-through; text-decoration-color: var(--sun-deep); text-decoration-thickness: 2px; }
.ledger dd { margin: 0; font-family: var(--font-display); font-weight: 650; font-size: 20px; line-height: 1.3; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .ledger > div { grid-template-columns: 1fr; } .ledger .lh { display: none; } }
.guide-sec .list { margin-top: 10px; }

/* Články: jedno velké číslo nahoře (to, co si čtenář odnese) a ukázka aplikace na konci */
.big { margin: 22px 0 6px; padding: 18px 0 18px 18px; border-left: 6px solid var(--sun); display: grid; gap: 4px; }
.big b { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 12vw, 76px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.big span { color: var(--muted); font-size: 16px; max-width: 30em; }
.cta { grid-template-columns: minmax(0, 1fr) 150px; align-items: center; justify-items: stretch; }
.cta > div:first-child { display: grid; gap: 12px; justify-items: start; }
.cta .phone { max-width: 150px; padding: 6px; border-radius: 24px; background: #161A17; }
.cta .phone img { border-radius: 19px; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
@media (max-width: 480px) { .cta { grid-template-columns: 1fr; } .cta .phone { justify-self: center; } }
.list li.num { grid-template-columns: 1fr; }
.list li.num em { font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--sun-deep); margin-bottom: 4px; }
.lang-line { margin: 0; max-width: 34em; font-size: 18px; }
.normal { margin-top: 26px; padding: 18px 20px; border-radius: 22px; background: var(--card); }
.normal h3 { font-family: var(--font-display); font-weight: 750; font-size: 22px; margin: 0 0 8px; }
.normal p { margin: 0; color: var(--muted); }
/* mobil: hlavní věta hned nahoře – kachny a týden menší, vedle sebe (Robin 4. 11.) */
@media (max-width: 560px) {
  .hero-top { flex-wrap: nowrap; gap: 10px; }
  .ducks { width: 92px; }
  .hero-top .week { height: 70px; gap: 6px; flex: 1 1 auto; }
  .hero-top .day i { height: calc(var(--h) * 50px); border-radius: 7px; }
  .hero-top .day.next i { height: 12px; }
  .hero-top .day b { font-size: 11px; }
}

/* Robin 28. 11.: motto pod úvodem, zdroj příběhu */
.motto { font-family: var(--disp, inherit); font-weight: 800; font-size: clamp(20px, 5vw, 26px); letter-spacing: -.01em; margin: 18px 0 0; border-left: 5px solid var(--sun); padding-left: 14px; }
.src { font-size: 14px; color: var(--muted); }
