/*
 * hangshots.com – „popsaný screenshot“.
 * Papír s tečkovanou mřížkou, inkoustové linky, šňůry s kolíčky a poznámky stejnými nástroji,
 * jaké má editor aplikace: žlutý zvýrazňovač, červená šipka, číslované značky.
 */

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/InterVariable-Italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --paper: #faf8f3;
    --paper-dot: #e2dccd;
    --sheet: #ffffff;
    --ink: #18181d;
    --ink-2: #565661;
    --ink-3: #8b8a93;
    --rule: #d8d1c1;
    --hl: #ffe45c;
    --red: #e0393e;
    --blue: #1e6bf0;
    --wood-1: #c9a375;
    --wood-2: #ead2ac;
    --wood-3: #bf9767;
    --lift: 0 1px 0 rgba(24, 24, 29, .05), 0 14px 28px -16px rgba(24, 24, 29, .38);
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: radial-gradient(var(--paper-dot) 1px, transparent 1.2px);
    background-size: 24px 24px;
    background-position: 12px 12px;
    font: 17px/1.6 "Inter", system-ui, sans-serif;
    font-feature-settings: "cv11", "ss03";
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--hl); color: var(--ink); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.035em; line-height: 1.02; }

/* ---------- hlavička ---------- */
.masthead { display: flex; align-items: center; gap: 28px; padding: 22px 0 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -0.02em; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { text-decoration: none; font-size: 15px; font-weight: 550; color: var(--ink-2); }
.menu a:hover { color: var(--ink); }
.menu i { font-style: normal; font-size: 11px; color: var(--red); font-weight: 650; margin-right: 6px; vertical-align: 2px; font-variant-numeric: tabular-nums; }
.langs { display: flex; gap: 2px; font-size: 12.5px; font-weight: 650; letter-spacing: .04em; }
.langs a { text-decoration: none; color: var(--ink-3); padding: 4px 6px; border-radius: 3px; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); background: linear-gradient(transparent 52%, var(--hl) 52%, var(--hl) 90%, transparent 90%); }
@media (max-width: 860px) { .menu { display: none; } .langs { margin-left: auto; } }
@media (max-width: 420px) { .langs { flex-wrap: wrap; justify-content: flex-end; max-width: 150px; } }

/* ---------- šňůra a kolíčky (sdílené) ---------- */
.rope { position: absolute; left: 0; width: 100%; height: 30px; overflow: visible; pointer-events: none; }
.rope path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .75; }
.peg, .tag::before, .photo::before {
    content: ""; position: absolute; top: -17px; width: 13px; height: 30px; border-radius: 3px;
    background: linear-gradient(90deg, var(--wood-1), var(--wood-2) 45%, var(--wood-3));
    box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18), 0 2px 3px rgba(0, 0, 0, .15);
}
.peg::after, .tag::after, .photo::after {
    content: ""; position: absolute; top: -6px; width: 9px; height: 3px; background: #8a8f99; border-radius: 1px;
}

/* ---------- úvod ---------- */
.hero { position: relative; padding: 52px 0 72px; }
.rope-hero { top: 18px; height: 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.kicker {
    display: inline-block; margin: 0 0 22px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-2); border: 1.5px solid var(--ink); border-radius: 3px; padding: 4px 10px; background: var(--sheet);
}
.hero h1 { font-size: clamp(46px, 5.9vw, 84px); line-height: .94; letter-spacing: -0.05em; font-weight: 780; }
.hl {
    color: inherit; padding: 0 .08em; margin: 0 -.04em;
    background: linear-gradient(100deg, transparent 1%, var(--hl) 3%, var(--hl) 96%, transparent 98%) 0 62% / 100% 46% no-repeat;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); margin: 26px 0 30px; max-width: 34em; }
.cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.meta { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* Tlačítko jako klávesa (Win + PrtScn). */
.key {
    display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 15px; font-weight: 650; font-size: 17px;
    color: var(--ink); text-decoration: none; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 10px;
    box-shadow: 0 5px 0 var(--ink); transform: translateY(0); transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.key svg { width: 18px; height: 18px; fill: var(--blue); }
.key:hover { background: #fffdf0; }
.key:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.key.big { font-size: 19px; padding: 17px 28px 18px; }
.key.is-off { color: var(--ink-3); border-color: var(--rule); box-shadow: 0 5px 0 var(--rule); }
.arrow-link { font-weight: 600; font-size: 16px; }
.arrow-link span { display: inline-block; transition: transform .15s; }
.arrow-link:hover span { transform: translateX(4px); }

/* Ručně psaná poznámka červenou šipkou ke stahování. */
.note { position: relative; margin: 34px 0 0 250px; color: var(--red); font-style: italic; font-weight: 600; font-size: 17px; transform: rotate(-3deg); }
.note svg { position: absolute; left: -116px; top: -54px; width: 110px; height: 66px; overflow: visible; }
.note path { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 600px) {
    .hero .note { margin: 18px 0 0; font-size: 16px; transform: rotate(-2deg); }
    .note svg { display: none; }
    .cta { gap: 18px; }
}

/* Ukázka visí na šňůře na dvou kolíčcích a lehce se houpe. */
.hanging { position: relative; margin: -6px 0 0; transform-origin: 50% -30px; animation: sway 7s ease-in-out infinite; }
.hanging .peg:nth-of-type(1) { left: 14%; }
.hanging .peg:nth-of-type(2) { right: 14%; }
.hanging .peg::after { left: 2px; }
.screen {
    border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; background: #e9ebf8; aspect-ratio: 16 / 9;
    box-shadow: 10px 10px 0 -1.5px var(--paper), 10px 10px 0 0 var(--ink);
}
.screen canvas { display: block; width: 100%; height: 100%; }
.demo figcaption {
    margin: 22px 0 0 4px; font-weight: 600; font-size: 15px; transition: opacity .3s;
    display: flex; align-items: center; gap: 10px; min-height: 24px;
}
.demo figcaption::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; animation: blink 1.6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.1deg); } 50% { transform: rotate(-.3deg); } }
@keyframes blink { 50% { opacity: .25; } }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .rope-hero { display: none; }
    .hanging { margin-top: 30px; }
    .hanging::before { content: ""; position: absolute; left: -20px; right: -20px; top: 0; border-top: 1.5px solid rgba(24, 24, 29, .75); }
    .note { margin-left: 210px; }
}

/* ---------- sekce ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 44px; }
.section-head .num { font-size: 15px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 56px); max-width: 18em; }
.section-head::after { content: ""; flex: 1; height: 1.5px; background: var(--ink); align-self: center; min-width: 40px; opacity: .8; }

/* Funkce: lístky na šňůře, po najetí se narovnají a zvednou (jako fotka v aplikaci). */
.line-row { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding-top: 34px; margin-bottom: 30px; }
.line-row .rope { top: 6px; }
.tag {
    position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 26px 22px 22px;
    box-shadow: var(--lift); transform-origin: 50% -20px; transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), box-shadow .3s;
}
.tag::before { left: calc(50% - 6.5px); }
.tag::after { left: calc(50% - 4.5px); top: -2px; }
.tag:nth-child(2) { transform: rotate(-1.6deg); }
.tag:nth-child(3) { transform: rotate(1.1deg); }
.tag:nth-child(4) { transform: rotate(-.6deg); }
.tag:nth-child(5) { transform: rotate(1.8deg); }
.tag:hover { transform: rotate(0) translateY(-6px) scale(1.03); box-shadow: 0 1px 0 rgba(24, 24, 29, .05), 0 22px 36px -18px rgba(24, 24, 29, .45); z-index: 1; }
.tag-icon { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tag h3 { font-size: 19px; margin: 14px 0 8px; letter-spacing: -0.02em; }
.tag p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 980px) { .line-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } .line-row .rope { display: none; } }
@media (max-width: 560px) { .line-row { grid-template-columns: 1fr; } .tag:nth-child(n) { transform: none; } }

/* Ukázky: editor s číslovanými značkami (jako šipky a čísla v editoru). */
.annotated { position: relative; margin: 0 0 80px; }
.annotated > a { display: block; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 12px 12px 0 -1.5px var(--paper), 12px 12px 0 0 var(--ink); }
.annotated img { display: block; width: 100%; }
.pin {
    position: absolute; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--red); color: #fff; font-weight: 750; font-size: 16px; border: 2.5px solid #fff;
    box-shadow: 0 6px 14px -4px rgba(224, 57, 62, .7); pointer-events: none; transform: translate(-50%, -50%);
}
/* Značky sedí na horní hraně okna nad skupinami tlačítek editoru. */
.pin-1 { left: 15.5%; top: 0; }
.pin-2 { left: 29%; top: 0; }
.pin-3 { left: 90%; top: 0; }
.annotated figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 34px; margin-top: 34px; }
.annotated figcaption strong { font-size: 18px; letter-spacing: -0.01em; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; color: var(--ink-2); font-size: 15.5px; }
.legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 9px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; }

.photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; padding: 40px 6% 0; align-items: start; }
.photo { position: relative; margin: 0; background: var(--sheet); padding: 14px 14px 18px; border: 1px solid var(--rule); box-shadow: var(--lift); transform-origin: 50% -20px; transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.photo:nth-child(2) { transform: rotate(-2deg); }
.photo:nth-child(3) { transform: rotate(1.5deg); }
.photo:hover { transform: rotate(0) translateY(-6px); }
.photo::before { left: calc(50% - 6.5px); }
.photo::after { left: calc(50% - 4.5px); top: -2px; }
.photo a { display: block; background: #202020; }
.photo img { display: block; width: 100%; }
.photo figcaption { margin-top: 12px; font-style: italic; font-weight: 550; color: var(--ink-2); font-size: 15px; text-align: center; }
@media (max-width: 760px) { .photos { grid-template-columns: 1fr; padding-inline: 0; gap: 56px; } .photos .rope { display: none; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(24, 24, 29, .82); }
.lightbox img { display: block; max-width: 96vw; max-height: 94vh; border-radius: 6px; cursor: zoom-out; }

/* ---------- zdarma: razítko ---------- */
.free { padding: 70px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--sheet); }
.free-grid { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; }
.stamp {
    margin: 0; padding: 18px 30px 16px; color: var(--red); font-weight: 850; font-size: clamp(40px, 6vw, 76px);
    letter-spacing: .06em; line-height: 1; border: 5px solid var(--red); border-radius: 10px; transform: rotate(-8deg);
    box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 6px var(--red); opacity: .92;
}
.free h2 { font-size: clamp(30px, 4vw, 50px); margin-bottom: 14px; }
.free p { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 36em; }
@media (max-width: 760px) { .free-grid { grid-template-columns: 1fr; gap: 36px; justify-items: start; } }

/* ---------- kroky ---------- */
.howto { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.howto li { padding: 26px 28px 30px 0; border-right: 1px dashed var(--rule); }
.howto li + li { padding-left: 28px; }
.howto li:last-child { border-right: 0; }
.howto .big { display: block; font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-bottom: 14px; }
.howto p { margin: 0; font-size: 18px; font-weight: 550; }
.howto .keys { margin-top: 14px; font-weight: 500; color: var(--ink-3); }
kbd {
    display: inline-block; font: 600 14px/1 "Inter", sans-serif; padding: 7px 10px 8px; border: 1.5px solid var(--ink); border-radius: 6px;
    background: var(--sheet); box-shadow: 0 3px 0 var(--ink); color: var(--ink);
}
.cta-end { flex-direction: column; align-items: flex-start; gap: 0; }
@media (max-width: 760px) {
    .howto { grid-template-columns: 1fr; }
    .howto li, .howto li + li { padding: 22px 0; border-right: 0; border-bottom: 1px dashed var(--rule); }
}

/* ---------- otázky ---------- */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 64px; margin: 0; }
.qa dt { font-weight: 700; font-size: 18.5px; letter-spacing: -0.015em; position: relative; padding-left: 26px; }
.qa dt::before { content: "?"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 800; }
.qa dd { margin: 8px 0 0 26px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; } }

/* ---------- texty a patička ---------- */
.prose { max-width: 760px; padding: 60px 0 90px; }
.prose h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 28px; }
.prose p { color: var(--ink-2); }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.btn { display: inline-block; font-weight: 650; padding: 12px 20px; border: 1.5px solid var(--ink); border-radius: 8px; text-decoration: none; background: var(--sheet); box-shadow: 0 4px 0 var(--ink); }

.colophon { margin-top: 40px; border-top: 1.5px solid var(--ink); padding: 30px 0 34px; overflow: hidden; }
/* Velký název v patičce: plný v tónu papíru (obrys by na proměnném písmu ukázal překryvy tahů). */
.wordmark {
    margin: 0 0 22px; font-size: clamp(64px, 16vw, 220px); font-weight: 850; letter-spacing: -0.06em; line-height: 1;
    color: #ebe5d6; white-space: nowrap; user-select: none;
}
.colophon-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; font-size: 14.5px; }
.colophon-row p { margin: 0; }
.colophon-row span { margin: 0 8px; color: var(--ink-3); }
.geo { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hanging, .demo figcaption::before { animation: none; }
    .tag, .photo, .key, .arrow-link span { transition: none; }
}
