/* ============================================================
   Rybmap — rybmap.cz (permit / ledger redesign)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Special+Elite&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
    --paper: #EDE6D2;
    --paper-dark: #E1D7BC;
    --paper-line: #c9bd9c;
    --ink: #1B3A4B;
    --ink-soft: #3d5b6b;
    --water: #2F6E7A;
    --stamp: #9A3324;
    --stamp-soft: #b5573f;
    --gold: #B8863E;
    --display: 'Fraunces', serif;
    --stamp-font: 'Special Elite', monospace;
    --body-font: 'Work Sans', sans-serif;
    --error: #c0392b;
    --success: #2d6a4f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    /* Sticky header + safe area — kotvy nesmí skončit pod navigací */
    scroll-padding-top: calc(112px + env(safe-area-inset-top, 0px));
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body-font);
    line-height: 1.55;
    font-size: 16px;
    overflow-x: clip;
    max-width: 100%;
    background-image:
        repeating-linear-gradient(transparent, transparent 27px, rgba(27, 58, 75, 0.055) 28px),
        radial-gradient(ellipse at 20% -10%, rgba(47, 110, 122, 0.10), transparent 55%);
}

a {
    color: var(--water);
}

img,
svg {
    display: block;
    max-width: 100%;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.container--narrow {
    max-width: 760px;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* eyebrow / stamp label */
.eyebrow {
    font-family: var(--stamp-font);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stamp);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--stamp);
    display: inline-block;
}

h1,
h2,
h3 {
    font-family: var(--display);
    margin: 0;
    color: var(--ink);
    font-weight: 600;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    letter-spacing: -0.01em;
}

p {
    color: var(--ink-soft);
}

/* perforated divider */
.perf {
    height: 1px;
    border-top: 2px dashed var(--paper-line);
    position: relative;
    margin: 0;
}

.perf::before,
.perf::after {
    content: "";
    position: absolute;
    top: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px dashed var(--paper-line);
}

.perf::before {
    left: -7px;
}

.perf::after {
    right: -7px;
}

/* ---------- header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(237, 230, 210, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--paper-line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 28px;
    min-width: 0;
}

.nav .btn {
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    overflow: hidden;
    background: var(--water);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(27, 58, 75, 0.15);
    flex-shrink: 0;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navlinks {
    display: flex;
    gap: 28px;
    font-size: 0.94rem;
    font-weight: 500;
}

.navlinks a {
    text-decoration: none;
    color: var(--ink-soft);
    border-bottom: 1px solid transparent;
}

.navlinks a:hover {
    border-bottom-color: var(--stamp);
    color: var(--ink);
}

.btn {
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-stamp {
    background: var(--stamp);
    color: var(--paper);
    box-shadow: 0 2px 0 #6d2016;
}

.btn-stamp:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #6d2016;
    color: var(--paper);
}

.btn-stamp:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #6d2016;
}

.btn-stamp:disabled {
    cursor: not-allowed;
    opacity: 0.85;
    transform: none;
}

.btn-ghost {
    border: 1.5px solid var(--ink);
    color: var(--ink);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--ink);
}

@media (max-width: 820px) {
    .navlinks {
        display: none;
    }
}

/* ---------- hero ---------- */
.hero {
    padding: 76px 0 60px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.08;
    margin: 18px 0 20px;
}

.hero h1 em {
    font-style: italic;
    color: var(--water);
}

.hero p.lead {
    font-size: 1.08rem;
    max-width: 46ch;
    margin-bottom: 30px;
}

.hero-seal-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.seal-plate {
    width: min(340px, 90%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #f5f1e2, var(--paper-dark) 72%);
    border: 1px solid var(--paper-line);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px -20px rgba(27, 58, 75, 0.35);
    position: relative;
    overflow: hidden;
}

.hero-logo-wrap {
    width: 84%;
    height: 84%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seal-plate .hero-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.26);
    filter: drop-shadow(0 10px 22px rgba(27, 58, 75, 0.28));
}

.stamp-badge {
    position: absolute;
    top: -6%;
    right: -8%;
    width: 150px;
    height: 150px;
    transform: rotate(-13deg);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.stamp-badge svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .hero-seal-area {
        overflow: hidden;
        width: min(280px, 72vw);
        margin-inline: auto;
    }

    .stamp-badge {
        top: -2%;
        right: -2%;
        width: 112px;
        height: 112px;
    }

    .cta-band {
        padding: 36px 22px;
    }

    .wrap,
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* ---------- waitlist ---------- */
.waitform,
.waitlist-form__row {
    display: flex;
    gap: 0;
    max-width: 420px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    overflow: hidden;
    background: #faf7ee;
}

.waitlist-form {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 420px;
}

.waitlist-form__label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
}

.waitlist-form__row {
    width: 100%;
}

.waitform input,
.waitlist-form__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 13px 14px;
    font-family: var(--body-font);
    font-size: 0.96rem;
    color: var(--ink);
}

.waitform input:focus,
.waitlist-form__input:focus {
    outline: none;
    background: #fff;
}

.waitform button,
.waitlist-form__button {
    border-radius: 0;
    border: none;
    white-space: nowrap;
}

.form-note,
.waitlist-form__hint {
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-top: 10px;
    opacity: 0.85;
}

.waitlist-form__hint a {
    color: var(--water);
}

.waitlist-form__status {
    margin: 0;
    font-size: 0.86rem;
    min-height: 1.35em;
}

.waitlist-form__status.is-success {
    color: var(--success);
}

.waitlist-form__status.is-error {
    color: var(--error);
}

.waitlist-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.waitlist-form__beta-cta {
    margin: 10px 0 0;
}

.btn-beta-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 3px;
    padding: 11px 18px;
    font-weight: 600;
    font-size: 0.94rem;
    background: var(--water);
    color: var(--paper);
    border: 1.5px solid var(--ink);
}

.btn-beta-guide:hover {
    color: var(--paper);
    filter: brightness(1.05);
}

.revir-waitlist-form {
    margin-top: 18px;
    max-width: 100%;
}

.revir-waitlist-form .waitlist-form__row {
    max-width: 100%;
}

/* ---------- sections ---------- */
section {
    padding: 64px 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: 40px;
}

.section-head .eyebrow {
    margin-bottom: 14px;
}

.section-head p {
    margin-top: 12px;
    font-size: 1.02rem;
}

.section__title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    text-align: center;
}

.section__subtitle {
    text-align: center;
    color: var(--ink-soft);
    max-width: 40em;
    margin: 0 auto 44px;
}

/* ---------- feature ledger ---------- */
.ledger {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--paper-line);
}

.ledger-item {
    display: flex;
    gap: 16px;
    padding: 22px 6px;
    border-bottom: 1px solid var(--paper-line);
}

.ledger-item:nth-child(odd) {
    border-right: 1px solid var(--paper-line);
    padding-right: 24px;
}

.ledger-item:nth-child(even) {
    padding-left: 24px;
}

.ledger-num {
    font-family: var(--stamp-font);
    color: var(--stamp);
    font-size: 0.85rem;
    padding-top: 3px;
    min-width: 26px;
}

.ledger-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--water);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ledger-icon svg {
    width: 19px;
    height: 19px;
    stroke: var(--paper);
    fill: none;
}

.ledger-text h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.ledger-text p {
    font-size: 0.93rem;
    margin: 0;
}

/* ---------- PRO panel ---------- */
.pro-panel {
    background: var(--ink);
    color: var(--paper);
    border-radius: 6px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.pro-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(115deg, rgba(184, 134, 62, 0.06) 0 2px, transparent 2px 26px);
}

.pro-panel .eyebrow {
    color: var(--gold);
}

.pro-panel .eyebrow::before {
    background: var(--gold);
}

.pro-panel h2 {
    color: var(--paper);
}

.pro-panel p.lead {
    color: #c9d6da;
    max-width: 56ch;
    margin: 14px 0 30px;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 28px;
    position: relative;
}

.pro-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.pro-check .tick {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1.4px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro-check .tick svg {
    width: 11px;
    height: 11px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 3;
}

.pro-check strong {
    display: block;
    font-size: 0.95rem;
    color: var(--paper);
    font-weight: 600;
}

.pro-check span {
    font-size: 0.85rem;
    color: #a9bac0;
}

.pro-price {
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px dashed rgba(237, 230, 210, 0.25);
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}

.pro-price .amount {
    font-family: var(--display);
    font-size: 2.1rem;
    color: var(--gold);
    font-weight: 700;
}

.pro-price .fine {
    font-size: 0.8rem;
    color: #8fa3aa;
    max-width: 52ch;
}

.pro-price .fine a {
    color: #c9d6da;
}

/* ---------- community ---------- */
.comm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.comm-card {
    border: 1px solid var(--paper-line);
    border-radius: 4px;
    padding: 22px 20px;
    background: #f6f2e4;
}

.comm-card .ledger-num {
    display: block;
    margin-bottom: 10px;
}

.comm-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.comm-card p {
    font-size: 0.89rem;
    margin: 0;
}

/* ---------- ambassadors ---------- */
.ambass {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    overflow: hidden;
}

.ambass > div {
    padding: 28px 26px;
    border-right: 1px solid var(--paper-line);
}

.ambass > div:last-child {
    border-right: none;
    background: var(--stamp);
    color: var(--paper);
}

.ambass > div:last-child p,
.ambass > div:last-child .eyebrow {
    color: #f1d9d2;
}

.ambass > div:last-child .eyebrow::before {
    background: #f1d9d2;
}

.ambass h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.ambass p {
    font-size: 0.9rem;
    margin: 0;
}

.ambass a.btn {
    margin-top: 14px;
}

/* ---------- FAQ ---------- */
.faq-list,
.faq {
    border-top: 1px solid var(--paper-line);
}

details {
    border-bottom: 1px solid var(--paper-line);
    padding: 18px 4px;
}

summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.02rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--ink);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    font-family: var(--body-font);
    font-size: 1.4rem;
    color: var(--stamp);
    flex-shrink: 0;
}

details[open] summary::after {
    content: "–";
}

details p {
    margin: 12px 0 2px;
    font-size: 0.95rem;
    max-width: 70ch;
}

/* ---------- final CTA ---------- */
.cta-band {
    background: var(--water);
    color: var(--paper);
    border-radius: 6px;
    padding: 52px 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-band h2 {
    color: var(--paper);
}

.cta-band p {
    color: #dcebee;
    margin-top: 8px;
    max-width: 40ch;
}

.cta-band .waitform,
.cta-band .waitlist-form__row {
    background: #f6f2e4;
    border-color: #0f2531;
    max-width: 100%;
}

.cta-band .waitlist-form {
    max-width: 420px;
}

.cta-band .waitlist-form__label {
    color: #dcebee;
}

.cta-band .waitlist-form__hint {
    color: #c5dde1;
}

.cta-band .btn-coming-soon {
    background: var(--stamp);
    color: var(--paper);
    box-shadow: 0 2px 0 #6d2016;
}

/* ---------- footer ---------- */
footer {
    background: var(--ink);
    color: #a9bac0;
    padding: 44px 0 30px;
    margin-top: 20px;
    position: relative;
}

footer::before {
    content: "";
    display: block;
    height: 16px;
    margin-bottom: 34px;
    background-image: radial-gradient(circle, var(--paper) 5px, transparent 5.5px);
    background-size: 24px 16px;
    background-position: top center;
    background-repeat: repeat-x;
    transform: translateY(-38px);
}

.foot-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

.foot-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.foot-links a {
    text-decoration: none;
    color: #a9bac0;
}

.foot-links a:hover {
    color: var(--paper);
}

.foot-legal {
    margin-top: 20px;
    font-size: 0.76rem;
    color: #6f858c;
    line-height: 1.6;
}

/* ---------- content pages ---------- */
.page-hero {
    padding: 56px 0 48px;
    text-align: center;
    border-bottom: 1px solid var(--paper-line);
}

.page-hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    letter-spacing: -0.02em;
    margin-top: 14px;
}

.page-hero p {
    margin-top: 10px;
    font-size: 1.02rem;
}

.page-hero--beta {
    padding: 44px 0 52px;
}

.page-content {
    padding: 56px 0 72px;
}

.page-content h2 {
    font-size: 1.35rem;
    margin: 36px 0 12px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h3 {
    font-size: 1.05rem;
    margin: 24px 0 8px;
}

.page-content p,
.page-content li {
    color: var(--ink-soft);
}

.page-content p {
    margin-bottom: 14px;
}

.page-content ul,
.page-content ol {
    margin: 0 0 16px 22px;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content .updated {
    font-size: 0.85rem;
    color: var(--ink-soft);
    font-style: italic;
    margin-bottom: 24px;
}

.contact-card {
    background: #f6f2e4;
    border: 1px solid var(--paper-line);
    border-radius: 4px;
    padding: 24px;
    margin: 24px 0;
}

.contact-card strong {
    color: var(--ink);
}

/* ---------- beta testování ---------- */
.ios-only-badge,
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f6f2e4;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 3px;
    margin-bottom: 16px;
    line-height: 1.35;
    max-width: 100%;
}

.platform-badge--android {
    border-color: var(--water);
    color: var(--water);
    background: rgba(47, 110, 122, 0.08);
}

.platform-badge svg {
    flex-shrink: 0;
}

.beta-expect {
    margin-top: 28px;
    padding: 24px 22px;
    background: #f6f2e4;
    border: 1px solid var(--paper-line);
    border-left: 4px solid var(--stamp);
    border-radius: 4px;
}

.beta-expect h3 {
    margin: 10px 0 14px;
    font-size: 1.2rem;
}

.beta-expect__list {
    margin: 0;
    padding: 0 0 0 18px;
    display: grid;
    gap: 10px;
}

.beta-expect__list li {
    color: var(--ink-soft);
}

.beta-expect__list strong {
    color: var(--ink);
}

.beta-cta-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.beta-steps {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.beta-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #f6f2e4;
    border: 1px solid var(--paper-line);
    border-radius: 4px;
    padding: 22px 20px;
}

.beta-step__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--water);
    color: var(--paper);
    font-family: var(--stamp-font);
    font-size: 0.95rem;
}

.beta-step__body h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.beta-step__body p {
    margin-bottom: 12px;
}

.beta-step__body ul {
    margin: 0 0 8px 18px;
}

.btn-testflight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 3px;
    padding: 11px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    background: #f6f2e4;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    transition: transform 0.15s ease;
}

.btn-testflight:hover {
    transform: translateY(-1px);
    color: var(--ink);
}

.btn-testflight--primary {
    background: var(--stamp);
    color: var(--paper);
    border-color: #6d2016;
    box-shadow: 0 2px 0 #6d2016;
}

.btn-testflight--primary:hover {
    color: var(--paper);
}

.beta-android-notice {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 4px;
    background: #f6f2e4;
    border: 1px solid var(--paper-line);
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.beta-android-notice strong {
    color: var(--ink);
}

.btn-coming-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 3px;
    padding: 13px 28px;
    font-weight: 600;
    font-size: 1rem;
    background: var(--stamp);
    color: var(--paper);
    box-shadow: 0 2px 0 #6d2016;
}

.btn-coming-soon:hover {
    color: var(--paper);
    transform: translateY(-1px);
}

/* ---------- 404 ---------- */
.error-page {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 60px 20px;
}

.error-page .code {
    font-family: var(--stamp-font);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 400;
    color: var(--stamp);
    line-height: 1;
    margin-bottom: 8px;
}

.error-page h1 {
    margin-bottom: 8px;
}

/* ---------- revír landing ---------- */
.revir-page {
    padding: 48px 0 72px;
}

.revir-state {
    text-align: center;
    padding: 48px 0;
    color: var(--ink-soft);
}

.revir-state__icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.revir-state__lead {
    margin: 12px 0 24px;
}

.revir-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 16px;
    border: 3px solid var(--paper-line);
    border-top-color: var(--water);
    border-radius: 50%;
    animation: revir-spin 0.8s linear infinite;
}

@keyframes revir-spin {
    to {
        transform: rotate(360deg);
    }
}

.revir-card {
    background: #f6f2e4;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 28px 24px 32px;
}

.revir-card__badge {
    display: inline-block;
    font-family: var(--stamp-font);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stamp);
    margin-bottom: 14px;
}

.revir-card__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.25;
    margin-bottom: 6px;
}

.revir-card__number {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.revir-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.revir-meta dt {
    color: var(--ink-soft);
    font-weight: 500;
}

.revir-meta dd {
    margin: 0;
    color: var(--ink);
}

.revir-card__desc {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 24px;
    white-space: pre-line;
}

.revir-map-section {
    margin-bottom: 24px;
}

.revir-map-seo {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.revir-map-seo a {
    color: var(--water);
    font-weight: 500;
}

.revir-map {
    width: 100%;
    height: 240px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--paper-line);
    margin-bottom: 14px;
    z-index: 0;
}

.revir-map-actions {
    display: grid;
    gap: 14px;
}

.revir-map-actions .btn-open-app {
    justify-self: start;
}

.revir-nav__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.revir-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.revir-nav__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    transition: transform 0.15s ease, background 0.15s ease;
}

.revir-nav__links a:hover {
    transform: translateY(-1px);
    background: rgba(47, 110, 122, 0.08);
    color: var(--ink);
}

.btn-navigate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 3px;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid var(--ink);
    transition: transform 0.15s ease;
}

.btn-navigate:hover {
    transform: translateY(-1px);
    color: var(--ink);
}

.revir-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-open-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 3px;
    background: var(--stamp);
    color: var(--paper);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 0 #6d2016;
    transition: transform 0.15s ease;
}

.btn-open-app:hover {
    transform: translateY(-1px);
    color: var(--paper);
}

.revir-sections {
    margin: 8px 0 24px;
}

.revir-extra {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--paper-line);
}

.revir-extra h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.revir-extra__list {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.revir-extra__list strong {
    color: var(--ink);
    font-weight: 600;
}

.btn-appstore {
    display: inline-block;
    line-height: 0;
    transition: transform 0.15s ease;
}

.btn-appstore:hover {
    transform: translateY(-2px);
}

.btn-appstore img {
    height: 40px;
    width: auto;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-top: 8px;
    scroll-margin-top: calc(112px + env(safe-area-inset-top, 0px));
}

.hero-cta-row .btn {
    text-decoration: none;
}

.btn-appstore-inline {
    display: inline-flex;
    align-items: center;
    color: var(--water);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- web mapa app ---------- */
.mapa-page {
    background: #1a2f3a;
    background-image: none;
    overflow: hidden;
    height: 100dvh;
    max-width: 100%;
}

.mapa-app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-width: 100%;
    overflow: hidden;
    color: var(--ink);
}

.mapa-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 10px 14px;
    background: var(--paper);
    border-bottom: 1.5px solid var(--ink);
    z-index: 20;
    max-width: 100%;
    box-sizing: border-box;
}

.mapa-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.mapa-brand img {
    border-radius: 6px;
}

.mapa-search {
    display: flex;
    flex: 1 1 220px;
    min-width: 0;
    max-width: 420px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.mapa-search input {
    flex: 1;
    border: 0;
    padding: 10px 12px;
    font: inherit;
    background: transparent;
    color: var(--ink);
    min-width: 0;
}

.mapa-search input:focus {
    outline: none;
}

.mapa-search__btn {
    border: 0;
    border-left: 1.5px solid var(--ink);
    background: var(--water);
    color: #f6f2e4;
    padding: 0 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.mapa-filters {
    display: flex;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.mapa-filters select {
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    padding: 8px 10px;
    min-width: 0;
    max-width: 100%;
}

.mapa-modes {
    display: inline-flex;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    overflow: hidden;
}

.mapa-mode {
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 12px;
    cursor: pointer;
}

.mapa-mode + .mapa-mode {
    border-left: 1.5px solid var(--ink);
}

.mapa-mode.is-active {
    background: var(--ink);
    color: var(--paper);
}

.mapa-appstore {
    margin-left: auto;
    line-height: 0;
}

.mapa-appstore img {
    height: 36px;
    width: auto;
}

.mapa-body {
    position: relative;
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 100%;
    overflow: hidden;
}

.mapa-app:not(.mapa-app--list) .mapa-sidebar {
    display: none;
}

.mapa-app:not(.mapa-app--list) .mapa-body {
    grid-template-columns: 1fr;
}

.mapa-sidebar {
    background: #f6f2e4;
    border-right: 1.5px solid var(--ink);
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    z-index: 5;
}

.mapa-sidebar__head {
    padding: 12px 14px;
    font-family: var(--stamp-font);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stamp);
    border-bottom: 1px solid var(--paper-line);
}

.mapa-list {
    overflow: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.mapa-list__empty {
    padding: 24px 16px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.mapa-list__item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--paper-line);
    background: transparent;
    padding: 12px 14px;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.mapa-list__item:hover,
.mapa-list__item.is-active {
    background: rgba(47, 110, 122, 0.1);
}

.mapa-list__badge {
    grid-row: 1 / span 2;
    align-self: center;
    font-family: var(--stamp-font);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stamp);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.mapa-list__title {
    font-weight: 600;
    font-size: 0.98rem;
}

.mapa-list__meta {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.mapa-stage {
    position: relative;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.mapa-map {
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #d5dde0;
}

.mapa-status {
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    z-index: 8;
    margin: 0;
    padding: 8px 14px;
    background: rgba(246, 242, 228, 0.95);
    border: 1px solid var(--ink);
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--ink);
    box-shadow: 0 4px 16px rgba(27, 58, 75, 0.12);
    max-width: calc(100% - 24px);
}

.mapa-status.is-error {
    color: var(--error);
}

.mapa-locate {
    position: absolute;
    right: 14px;
    bottom: 88px;
    z-index: 8;
    width: 44px;
    height: 44px;
    border-radius: 3px;
    border: 1.5px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(27, 58, 75, 0.18);
}

.mapa-locate:hover {
    background: #fff;
}

.mapa-marker {
    background: transparent !important;
    border: 0 !important;
}

.mapa-marker__dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.mapa-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 100%);
    background: #f6f2e4;
    border-left: 1.5px solid var(--ink);
    z-index: 12;
    transform: translateX(105%);
    transition: transform 0.28s ease;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.mapa-app--panel-open .mapa-panel {
    transform: translateX(0);
}

.mapa-panel__close {
    position: sticky;
    top: 8px;
    float: right;
    margin: 8px 10px 0 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: var(--paper);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.mapa-panel__body {
    padding: 20px 18px 28px;
    clear: both;
}

.mapa-panel__loading,
.mapa-panel__error {
    text-align: center;
    color: var(--ink-soft);
    padding: 32px 8px;
}

.mapa-panel__badge {
    font-family: var(--stamp-font);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stamp);
    margin-bottom: 8px;
}

.mapa-panel__title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 4px;
}

.mapa-panel__number {
    color: var(--ink-soft);
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.mapa-panel__section {
    margin: 18px 0;
}

.mapa-panel__section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.mapa-panel__section p {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.mapa-panel__fish {
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
}

.mapa-panel__fish span {
    color: var(--ink-soft);
    font-weight: 400;
}

.mapa-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.mapa-panel__actions .revir-nav {
    flex: 1 1 100%;
    margin-top: 4px;
}

/* ---------- SEO hledat pages ---------- */
.hledat-page {
    padding: 40px 0 72px;
    min-width: 0;
    overflow-x: clip;
}

.hledat-page h1 {
    margin: 12px 0 16px;
    font-size: clamp(1.55rem, 6vw, 2.4rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hledat-page .lead {
    max-width: 62ch;
}

.hledat-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 560px;
    margin: 28px 0 20px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.hledat-form input,
.hledat-form input[type="search"] {
    flex: 1 1 auto;
    border: 0;
    border-radius: 0;
    padding: 14px 16px;
    font: inherit;
    font-size: 16px; /* iOS: avoid auto-zoom */
    color: var(--ink);
    background: #fff;
    min-width: 0;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.hledat-form input::-webkit-search-decoration,
.hledat-form input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.hledat-form input:focus {
    outline: none;
}

.hledat-form button {
    flex: 0 0 auto;
    border-radius: 0;
    box-shadow: none;
    white-space: nowrap;
}

.hledat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
    align-items: center;
    margin: 0 0 36px;
}

.hledat-actions .btn-open-app {
    flex: 0 1 auto;
}

.hledat-results h2 {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    margin-bottom: 12px;
}

.hledat-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: grid;
    gap: 0;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    overflow: hidden;
    background: #f6f2e4;
}

.hledat-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hledat-item + .hledat-item {
    border-top: 1px solid var(--paper-line);
}

.hledat-item a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--ink);
}

.hledat-item a:hover {
    background: rgba(47, 110, 122, 0.08);
    color: var(--ink);
}

.hledat-item__rank {
    font-family: var(--stamp-font);
    color: var(--stamp);
    min-width: 1.6rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.hledat-item__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.hledat-item__body strong {
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.hledat-item__meta {
    color: var(--ink-soft);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.hledat-related h2 {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
}

.hledat-related__list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.hledat-related__list a {
    text-decoration: none;
    border-bottom: 1px solid var(--paper-line);
    color: var(--water);
    font-weight: 500;
}

.hledat-related__list a:hover {
    border-bottom-color: var(--stamp);
}

.hledat-intro,
.hledat-faq {
    margin: 28px 0 36px;
    max-width: 52rem;
}

.hledat-intro h2,
.hledat-faq h2 {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    margin-bottom: 12px;
}

.hledat-intro p {
    margin: 0 0 14px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.hledat-faq__item {
    border-top: 1px solid var(--paper-line);
    padding: 12px 0;
}

.hledat-faq__item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
}

.hledat-faq__item summary::-webkit-details-marker {
    display: none;
}

.hledat-faq__item p {
    margin: 10px 0 0;
    line-height: 1.6;
    color: var(--ink-soft);
}

.revir-state__title {
    font-family: var(--display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 0 12px;
}

.seo-search-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 18px;
}

.seo-search-links a {
    color: var(--water);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--paper-line);
}

/* Compact map CTA in header on narrow screens */
.nav-cta-full {
    display: inline;
}

.nav-cta-short {
    display: none;
}

@media (max-width: 640px) {
    .hledat-page {
        padding: 28px 0 56px;
    }

    .hledat-form {
        max-width: 100%;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .hledat-form button {
        width: 100%;
        justify-content: center;
        padding: 13px 16px;
        border-top: 1px solid var(--ink);
    }

    .hledat-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 32px;
    }

    .hledat-actions .btn-open-app {
        width: 100%;
        justify-content: center;
    }

    .hledat-actions .btn-appstore-inline {
        align-self: center;
        text-align: center;
        padding: 4px 0 2px;
    }

    .hledat-item a {
        padding: 13px 14px;
    }

    .nav-cta-full {
        display: none;
    }

    .nav-cta-short {
        display: inline;
    }

    .nav .btn {
        padding: 10px 14px;
        font-size: 0.88rem;
    }
}

@media (max-width: 900px) {
    .mapa-body {
        grid-template-columns: 1fr;
    }

    .mapa-app--list .mapa-sidebar {
        position: absolute;
        inset: 0;
        z-index: 10;
        width: 100%;
        border-right: 0;
    }

    .mapa-app--list .mapa-stage {
        visibility: hidden;
    }

    .mapa-panel {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: min(72dvh, 560px);
        border-left: 0;
        border-top: 1.5px solid var(--ink);
        transform: translateY(105%);
        border-radius: 10px 10px 0 0;
    }

    .mapa-app--panel-open .mapa-panel {
        transform: translateY(0);
    }

    .mapa-appstore {
        display: none;
    }

    .mapa-locate {
        bottom: 24px;
    }
}

@media (max-width: 640px) {
    .mapa-top {
        padding: 10px 12px;
        gap: 8px;
    }

    .mapa-modes {
        margin-left: auto;
    }

    .mapa-filters {
        width: 100%;
        flex: 1 1 100%;
    }

    .mapa-filters select {
        flex: 1;
    }

    .mapa-search {
        max-width: none;
        flex: 1 1 100%;
        order: 5;
        width: 100%;
    }
}

/* ---------- scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

#funkce,
#pro,
#faq,
#komunita,
#ambasadori,
#hledani,
#stahnout {
    scroll-margin-top: calc(112px + env(safe-area-inset-top, 0px));
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 44px;
    }

    .hero-seal-area {
        order: -1;
    }

    .comm-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .pro-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pro-panel {
        padding: 34px 24px;
    }

    .ambass {
        grid-template-columns: 1fr;
    }

    .ambass > div {
        border-right: none;
        border-bottom: 1px solid var(--paper-line);
    }
}

@media (max-width: 760px) {
    .ledger {
        grid-template-columns: 1fr;
    }

    .ledger-item:nth-child(odd) {
        border-right: none;
    }

    .ledger-item:nth-child(even) {
        padding-left: 6px;
    }

    .waitlist-form__row,
    .waitform {
        flex-direction: column;
        max-width: 100%;
    }

    .waitlist-form__button,
    .waitform button {
        width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 560px) {
    .pro-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .comm-grid {
        grid-template-columns: 1fr;
    }

    .beta-step {
        flex-direction: column;
        gap: 12px;
    }

    .btn-testflight {
        width: 100%;
        justify-content: center;
    }

    .beta-cta-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .beta-cta-stack .btn,
    .beta-cta-stack .btn-testflight {
        width: 100%;
        justify-content: center;
    }

    .cta-band {
        padding: 36px 24px;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }

    .revir-spinner {
        animation: none;
    }
}
