/*
 * BytovkaOnline – web produktu (public/web).
 * Čisté CSS bez sestavování: složku stačí nahrát na server.
 * Barvy a písmo jsou stejné jako v aplikaci (resources/css/app.css).
 */

@font-face {
    font-family: 'Inter Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
        U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Smrková zelená aplikace */
    --brand-50: #f0f7f4;
    --brand-100: #dcede5;
    --brand-200: #bbdacd;
    --brand-300: #8dc0ad;
    --brand-400: #5ca08a;
    --brand-500: #3b8470;
    --brand-600: #2b6a5a;
    --brand-700: #24564a;
    --brand-800: #1f453c;
    --brand-900: #1a3932;
    --brand-950: #0d201c;

    --paper: #f5f4f0;
    --white: #fff;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;

    --amber-50: #fffbeb;
    --amber-200: #fde68a;
    --amber-800: #92400e;
    --red-50: #fef2f2;
    --red-500: #ef4444;
    --red-700: #b91c1c;

    --shadow-card: 0 1px 2px rgb(13 32 28 / 0.04), 0 1px 3px rgb(13 32 28 / 0.06);
    --shadow-lift: 0 18px 40px -16px rgb(13 32 28 / 0.22), 0 2px 6px rgb(13 32 28 / 0.05);
    --shadow-cta: 0 8px 20px -8px rgb(36 86 74 / 0.55);

    --header: 4rem;
}

/* ---------------------------------------------------------------- základ */

*,
::before,
::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
    /* Kotvy nesmí skončit pod přilepenou hlavičkou */
    scroll-padding-top: calc(var(--header) + 1rem);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Otevřené okno registrace: stránka pod ním se neposouvá */
html:has(dialog[open]) {
    overflow: hidden;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--stone-900);
    font-family: 'Inter Variable', ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

a {
    color: inherit;
}

strong {
    font-weight: 600;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--brand-200);
    color: var(--brand-950);
}

:focus-visible {
    outline: 2px solid var(--brand-600);
    outline-offset: 2px;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.skip {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    z-index: 60;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--white);
    box-shadow: var(--shadow-lift);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.skip:focus {
    top: 0.75rem;
}

/* ----------------------------------------------------------------- ikony */

.icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--xs {
    width: 0.75rem;
    height: 0.75rem;
    stroke-width: 3;
}

.icon--sm {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.5;
}

.icon--lg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon--xl {
    width: 1.75rem;
    height: 1.75rem;
}

.tile {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--brand-50);
    color: var(--brand-700);
    box-shadow: inset 0 0 0 1px var(--brand-100);
    transition:
        background-color 0.3s,
        color 0.3s,
        box-shadow 0.3s;
}

.tile--xl {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
}

.tile--dark {
    background: rgb(59 132 112 / 0.18);
    color: var(--brand-300);
    box-shadow: inset 0 0 0 1px rgb(92 160 138 / 0.28);
}

.tick {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: var(--brand-100);
    color: var(--brand-700);
}

/* -------------------------------------------------------------- tlačítka */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.2s,
        border-color 0.2s,
        transform 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn--primary {
    background: var(--brand-700);
    color: var(--white);
    box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
    background: var(--brand-800);
}

.btn--secondary {
    border-color: var(--stone-300);
    background: var(--white);
    color: var(--stone-800);
    box-shadow: 0 1px 2px rgb(13 32 28 / 0.05);
}

.btn--secondary:hover {
    border-color: var(--stone-400);
    background: var(--stone-100);
}

.btn--sm {
    height: 2.5rem;
    padding-inline: 1.25rem;
    font-size: 0.875rem;
}

.btn--md {
    height: 3rem;
    padding-inline: 1.5rem;
}

.btn--lg {
    height: 3.5rem;
    padding-inline: 1.75rem;
    font-size: 1.125rem;
}

.btn--block {
    width: 100%;
}

.icon--arrow {
    stroke-width: 2;
    transition: transform 0.2s;
}

.btn:hover .icon--arrow {
    transform: translateX(0.25rem);
}

/* -------------------------------------------------------------- hlavička */

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgb(231 229 228 / 0.7);
    background: rgb(255 255 255 / 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 0.5rem;
    text-decoration: none;
}

.logo__mark {
    width: 2.25rem;
    height: 2.25rem;
}

.logo__name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--stone-900);
}

.logo--light .logo__name {
    color: var(--white);
}

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-600);
}

.nav a {
    border-radius: 0.25rem;
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--stone-900);
}

/* ------------------------------------------------------------------ úvod */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Jemný tečkovaný rastr, do stran a dolů se vytrácí */
.hero__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle at 1px 1px, rgb(13 32 28 / 0.09) 1px, transparent 0);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 25%, transparent 78%);
}

.hero__blob {
    position: absolute;
    top: -14rem;
    right: -10rem;
    z-index: -1;
    width: 26rem;
    height: 26rem;
    border-radius: 999px;
    background: rgb(187 218 205 / 0.5);
    filter: blur(64px);
}

.hero__inner {
    display: grid;
    align-items: center;
    gap: 4rem;
    padding-top: 3.5rem;
    padding-bottom: 5rem;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero__title span {
    color: var(--brand-600);
}

.hero__lead {
    max-width: 36rem;
    margin-top: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--stone-600);
}

.hero__lead strong {
    color: var(--stone-900);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

.offer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 36rem;
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid var(--brand-200);
    border-radius: 1rem;
    background: rgb(240 247 244 / 0.85);
}

.offer__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--brand-600);
    color: var(--white);
    box-shadow: 0 1px 2px rgb(13 32 28 / 0.12);
}

.offer__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-800);
}

.offer__text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--stone-600);
}

.offer__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

.offer__price strong {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.chip {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--brand-200);
    border-radius: 999px;
    background: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-700);
}

.offer--compact {
    align-items: center;
    max-width: none;
    margin-top: 0;
    border-radius: 0.75rem;
}

.offer--compact .offer__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
}

.offer--compact .offer__text {
    margin-top: 0;
}

.offer--compact .offer__price {
    align-items: baseline;
    margin-top: 0.125rem;
}

.offer--compact .offer__price strong {
    font-size: 1.125rem;
    font-weight: 700;
}

.offer--compact .offer__price span {
    font-size: 0.875rem;
    color: var(--stone-600);
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-600);
}

.trust li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust .icon {
    color: var(--brand-600);
}

/* Ilustrace v úvodu: přehled obyvatele */

.mock {
    position: relative;
    width: 100%;
    max-width: 30rem;
    margin-inline: auto;
}

.mock__glow {
    position: absolute;
    inset: -1.5rem;
    z-index: -1;
    border-radius: 2.5rem;
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50) 50%, var(--amber-50));
    filter: blur(40px);
    opacity: 0.85;
}

.mock__card {
    padding: 1.25rem;
    border: 1px solid rgb(231 229 228 / 0.85);
    border-radius: 1.5rem;
    background: rgb(255 255 255 / 0.92);
    box-shadow: var(--shadow-lift);
    backdrop-filter: blur(8px);
}

.mock__bar {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--stone-200);
}

.mock__logo {
    width: 1.75rem;
    height: 1.75rem;
}

.mock__house {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
}

.mock__avatar {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--brand-100);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--brand-800);
}

.mock__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--stone-500);
}

.mock__muted {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: var(--stone-500);
}

.mock__due {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--paper);
}

.mock__due strong {
    display: block;
    margin-top: 0.125rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.mock__meters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.mock__meter {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem;
    border: 1px solid var(--stone-200);
    border-radius: 0.875rem;
}

.mock__meter strong {
    display: block;
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}

.mock__drop {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--brand-50);
    color: var(--brand-600);
}

.mock__drop .icon {
    stroke-width: 2;
}

.mock__rows {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.mock__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--stone-200);
    border-radius: 0.75rem;
    background: var(--stone-100);
    animation: rise 0.7s cubic-bezier(0.21, 0.47, 0.32, 0.98) both;
    animation-delay: var(--delay, 0s);
}

.mock__row b {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.mock__row small {
    display: block;
    font-size: 0.6875rem;
    color: var(--stone-500);
}

.pill {
    flex-shrink: 0;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.pill--green {
    background: var(--brand-100);
    color: var(--brand-800);
    box-shadow: inset 0 0 0 1px var(--brand-200);
}

.pill--amber {
    background: var(--amber-50);
    color: var(--amber-800);
    box-shadow: inset 0 0 0 1px var(--amber-200);
}

.mock__badge {
    position: absolute;
    top: -1.25rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem 0.5rem 0.5rem;
    border: 1px solid var(--stone-200);
    border-radius: 1rem;
    background: var(--white);
    box-shadow: var(--shadow-lift);
    font-size: 0.8125rem;
    font-weight: 700;
}

.mock__badge .tick {
    width: 1.75rem;
    height: 1.75rem;
}

/* ----------------------------------------------------------------- sekce */

.section {
    padding-block: 5rem;
}

.section--tinted {
    border-block: 1px solid rgb(231 229 228 / 0.7);
    background: var(--paper);
}

.section--top-line {
    border-bottom: 0;
}

.section--dark {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--brand-950);
}

.section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(60% 55% at 50% 0%, rgb(59 132 112 / 0.35), transparent 70%);
}

.heading {
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
}

.heading h2,
.split h2 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.heading p {
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--stone-600);
    text-wrap: balance;
}

.heading--dark h2 {
    color: var(--white);
}

.heading--dark p {
    color: var(--brand-200);
}

.grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.card {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--stone-200);
    border-radius: 1rem;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.card--hover {
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        opacity 0.5s ease-out;
}

.card--hover:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lift);
}

.card--hover:hover .tile {
    background: var(--brand-600);
    color: var(--white);
    box-shadow: inset 0 0 0 1px var(--brand-600);
}

.card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card__no {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    color: var(--stone-400);
}

.card h3,
.feature h3,
.benefit h3 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
}

.card h3,
.feature h3 {
    margin-top: 1.25rem;
}

.card p,
.feature p,
.benefit p {
    line-height: 1.6;
    color: var(--stone-600);
    text-wrap: pretty;
}

.card p,
.feature p {
    margin-top: 0.5rem;
}

.callout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--brand-200);
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--brand-50), var(--white));
}

.callout__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--brand-600);
    color: var(--white);
}

.callout__body {
    flex: 1;
}

.callout h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.callout p {
    max-width: 48rem;
    margin-top: 0.5rem;
    line-height: 1.6;
    color: var(--stone-600);
}

.callout p strong {
    color: var(--brand-700);
}

.callout__list {
    display: grid;
    flex-shrink: 0;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-700);
}

.callout__list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.feature {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.04);
    transition:
        border-color 0.3s,
        background-color 0.3s,
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
}

.feature:hover {
    border-color: rgb(255 255 255 / 0.2);
    background: rgb(255 255 255 / 0.07);
}

.feature h3 {
    color: var(--white);
}

.feature p {
    color: var(--brand-200);
}

.split {
    display: grid;
    align-items: center;
    gap: 3rem;
}

.split h2 {
    margin-top: 1.5rem;
}

.split__lead {
    max-width: 28rem;
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--stone-600);
}

.benefits {
    display: grid;
    gap: 1rem;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--stone-200);
    border-radius: 1rem;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition:
        box-shadow 0.3s,
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
}

.benefit:hover {
    box-shadow: var(--shadow-lift);
}

.benefit p {
    margin-top: 0.25rem;
}

/* ----------------------------------------------------------------- ceník */

.plan {
    display: flex;
    flex-direction: column;
    max-width: 28rem;
    margin: 4rem auto 0;
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: var(--white);
    box-shadow:
        var(--shadow-lift),
        0 0 0 2px var(--brand-600);
}

.plan h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.plan__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.5rem;
    margin-top: 1rem;
}

.plan__price strong {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.plan__price span {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--stone-500);
}

.plan__chip {
    align-self: flex-start;
    margin-top: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--brand-50);
    box-shadow: inset 0 0 0 1px var(--brand-200);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-700);
}

.plan__list {
    display: grid;
    gap: 0.875rem;
    margin: 2rem 0 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--stone-100);
}

.plan__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
    color: var(--stone-700);
}

.plan__list .tick {
    margin-top: 0.125rem;
}

.note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--stone-500);
}

/* --------------------------------------------------------------- patička */

.footer {
    background: var(--brand-950);
    color: var(--brand-300);
}

.footer .container {
    padding-block: 4rem 2rem;
}

.footer__grid {
    display: grid;
    gap: 3rem;
}

.footer__about {
    max-width: 24rem;
    margin-top: 1.25rem;
    line-height: 1.6;
}

.footer__points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.footer__points li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__points .icon {
    color: var(--brand-400);
}

.footer h3 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
}

.footer h3 + ul {
    display: grid;
    gap: 0.625rem;
    margin-top: 1.25rem;
}

.footer__strong {
    font-weight: 500;
    color: var(--brand-100);
}

.footer a {
    border-radius: 0.25rem;
    color: var(--brand-100);
    text-decoration-color: rgb(255 255 255 / 0.25);
    text-underline-offset: 4px;
    transition:
        color 0.2s,
        text-decoration-color 0.2s;
}

.footer a:hover {
    color: var(--white);
    text-decoration-color: var(--white);
}

.footer__bottom {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    font-size: 0.875rem;
}

/* ------------------------------------------------------------ registrace */

.modal {
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
    padding: 0;
    border: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    background: var(--white);
    color: var(--stone-900);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35);
    overflow: hidden;
}

/* Zavřené okno schovává prohlížeč sám; rozložení dostane, až když je otevřené. */
.modal[open] {
    display: flex;
    flex-direction: column;
    animation: sheet 0.25s ease-out;
}

.modal::backdrop {
    background: rgb(13 32 28 / 0.6);
    backdrop-filter: blur(4px);
    animation: fade 0.2s ease-out;
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--stone-200);
}

.modal__head h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal__close {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: -0.5rem;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--stone-500);
    cursor: pointer;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.modal__close:hover {
    background: var(--stone-100);
    color: var(--stone-900);
}

.modal__close .icon {
    stroke-width: 2;
}

.modal__form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.modal__form[hidden],
.modal__done[hidden] {
    display: none;
}

.modal__body {
    display: grid;
    min-height: 0;
    flex: 1;
    gap: 2rem;
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal__foot {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--stone-200);
    background: var(--paper);
}

.modal__done {
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding: 3rem 1.5rem;
    text-align: center;
    outline: none;
}

.modal__done-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: var(--brand-100);
    color: var(--brand-700);
}

.modal__done-icon .icon {
    stroke-width: 2.5;
}

.modal__done h3 {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.modal__done p {
    max-width: 26rem;
    line-height: 1.6;
    color: var(--stone-600);
}

.modal__done strong {
    color: var(--stone-900);
    overflow-wrap: anywhere;
}

.fieldset {
    display: grid;
    gap: 1rem;
    min-width: 0;
    border: 0;
}

.fieldset legend {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0 0 0.5rem;
    border-bottom: 1px solid var(--stone-200);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stone-500);
}

.field-row {
    display: grid;
    gap: 1rem;
}

.field {
    min-width: 0;
}

.field label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-700);
}

.field input,
.field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--stone-300);
    border-radius: 0.5rem;
    background: var(--white);
    /* 16 px: iPhone jinak při psaní stránku přiblíží */
    font-size: 1rem;
    box-shadow: 0 1px 2px rgb(13 32 28 / 0.05);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.field textarea {
    resize: vertical;
    min-height: 5rem;
}

.field input::placeholder {
    color: var(--stone-400);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgb(59 132 112 / 0.18);
}

.field [aria-invalid='true'] {
    border-color: var(--red-500);
}

.field [aria-invalid='true']:focus {
    border-color: var(--red-500);
    box-shadow: 0 0 0 4px rgb(239 68 68 / 0.15);
}

/* Pole s tlačítkem (IČ a načtení z ARES) */
.field__group {
    display: flex;
}

.field__group input {
    border-radius: 0.5rem 0 0 0.5rem;
}

.field__group input:focus {
    position: relative;
    z-index: 1;
}

.field__addon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
    margin-left: -1px;
    padding-inline: 1rem;
    border: 1px solid var(--brand-700);
    border-radius: 0 0.5rem 0.5rem 0;
    background: var(--brand-700);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.2s,
        border-color 0.2s;
}

.field__addon:hover {
    border-color: var(--brand-800);
    background: var(--brand-800);
}

.field__addon[disabled] {
    border-color: var(--stone-300);
    background: var(--stone-100);
    color: var(--stone-400);
    cursor: not-allowed;
}

.field__addon .icon {
    stroke-width: 2;
}

.field__addon .spinner {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.field__addon .spinner:not([hidden]) + .icon {
    display: none;
}

.field__ok {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--brand-700);
}

.field__error {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--red-700);
}

.field__hint {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--stone-500);
}

.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.fineprint {
    font-size: 0.75rem;
    color: var(--stone-500);
}

.form-error {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--red-50);
    box-shadow: inset 0 0 0 1px rgb(239 68 68 / 0.3);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--red-700);
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 3px solid rgb(255 255 255 / 0.3);
    border-top-color: var(--white);
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

.spinner[hidden] {
    display: none;
}

.noscript {
    margin: 0;
    padding: 1rem 1.25rem;
    background: var(--amber-50);
    text-align: center;
    font-size: 0.875rem;
    color: var(--amber-800);
}

/* -------------------------------------------------------------- animace */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

@keyframes sheet {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }
}

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

.rise {
    animation: rise 0.7s cubic-bezier(0.21, 0.47, 0.32, 0.98) both;
    animation-delay: var(--delay, 0s);
}

/* Postupné odkrývání při posunu stránky (jen jednou, jen s JavaScriptem) */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out,
        box-shadow 0.3s,
        border-color 0.3s,
        background-color 0.3s;
    transition-delay: var(--delay, 0s), var(--delay, 0s), 0s, 0s, 0s;
}

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

/* Po odkrytí už zpoždění nesmí brzdit reakci na myš */
.js .reveal.is-settled {
    transition-delay: 0s;
}

.js .card--hover.is-settled:hover {
    transform: translateY(-0.25rem);
}

/* ------------------------------------------------------- širší obrazovky */

@media (min-width: 40rem) {
    .container {
        padding-inline: 2rem;
    }

    .hero__inner {
        padding-top: 5rem;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    /* „na jednom místě“ drží pohromadě */
    .hero__title span {
        white-space: nowrap;
    }

    .hero__lead {
        font-size: 1.25rem;
    }

    .hero__actions {
        flex-direction: row;
        align-items: center;
    }

    .hero__blob {
        top: -12rem;
        right: -12%;
        width: 38rem;
        height: 38rem;
    }

    .offer {
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .mock__card {
        padding: 1.75rem;
    }

    .mock__badge {
        right: 1.5rem;
    }

    .section {
        padding-block: 7rem;
    }

    .heading h2,
    .split h2 {
        font-size: 2.25rem;
    }

    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        padding: 1.75rem;
    }

    .callout {
        padding: 2rem;
    }

    .callout h3 {
        font-size: 1.5rem;
    }

    .benefit {
        padding: 1.5rem;
    }

    .plan {
        padding: 2.25rem;
    }

    .plan__price strong {
        font-size: 3rem;
    }

    .field-row {
        grid-template-columns: 1fr 1fr;
    }

    .field-row--3 {
        grid-template-columns: 2fr 1fr 1fr;
    }

    /* Okno uprostřed obrazovky místo listu u spodního okraje */
    .modal {
        max-width: 42rem;
        max-height: 90dvh;
        margin: auto;
        border-radius: 1.5rem;
    }

    .modal__head,
    .modal__foot {
        padding-inline: 2rem;
    }

    .modal__body {
        padding-inline: 2rem;
    }

    .modal__done {
        padding: 4rem 2rem;
    }
}

@media (min-width: 48rem) {
    .nav {
        display: flex;
    }

    .footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

@media (min-width: 64rem) {
    .hero__inner {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3.5rem;
        padding-top: 6rem;
        padding-bottom: 7rem;
    }

    .mock {
        max-width: none;
    }

    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .callout {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
    }

    .split {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 5rem;
    }
}

@media (min-width: 80rem) {
    .hero__title {
        font-size: 4rem;
    }
}

/* Uživatelé s omezením pohybu: bez animací, obsah zůstává viditelný */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

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