/* ==========================================================================
   osloveni.cz — moderní vzhled laděný k logu
   Magenta #A51C92 · navy #131527 · čisté chladné pozadí, gradienty, soft stíny
   ========================================================================== */
:root {
    --bg:           #f7f6fc;
    --bg-2:         #f1eef9;
    --surface:      #ffffff;
    --ink:          #131527;
    --ink-soft:     #494c66;
    --ink-faint:    #6a6d85;

    --brand:        #a51c92;
    --brand-bright: #c81fa6;
    --brand-dk:     #8a1078;
    --brand-soft:   #f8e7f5;
    --brand-tint:   #fbf2fa;

    --line:         rgba(19, 21, 39, .10);
    --line-soft:    rgba(19, 21, 39, .055);

    --grad: linear-gradient(115deg, #a51c92 0%, #c81fa6 55%, #e0359c 100%);
    --grad-soft: linear-gradient(135deg, #fbf0f9, #f3ecfb);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 2px rgba(19,21,39,.06), 0 1px 1px rgba(19,21,39,.04);
    --shadow-md: 0 12px 34px rgba(19,21,39,.10);
    --shadow-lg: 0 30px 70px rgba(86,16,77,.20);
    --shadow-brand: 0 16px 40px rgba(165,28,146,.30);

    --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
    --sans:  "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
    --mono:  ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

    --maxw: 1160px;
    --gutter: clamp(1.15rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background:
        radial-gradient(1200px 680px at 88% -8%, #f3dcef 0%, transparent 55%),
        radial-gradient(1000px 620px at -8% 4%, #e7e0fb 0%, transparent 52%),
        var(--bg);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: #fff; }

/* --- Typografie ----------------------------------------------------------- */
.display {
    font-family: var(--serif);
    font-weight: 500;
    font-optical-sizing: auto;
    letter-spacing: -.02em;
    line-height: 1.04;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .73rem;
    font-weight: 700;
    color: var(--brand);
}
.ink-accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 500; }

.section { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section-head { max-width: 54ch; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.9rem, 4.6vw, 3rem);
    letter-spacing: -.025em;
    line-height: 1.08;
    margin: .6rem 0;
}
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 52px;
    padding: 0 1.6rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .22s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; }
.btn--primary {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(165,28,146,.40); }
.btn--primary:active { transform: translateY(0); }
.btn--primary.is-loading { opacity: .85; cursor: progress; }
.btn--primary:disabled { cursor: not-allowed; }
.btn--ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dk); transform: translateY(-1px); }
.btn--lg { min-height: 58px; padding: 0 2rem; font-size: 1.05rem; }

/* --- Header --------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: .8rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__img { height: 40px; width: auto; display: block; }
.site-footer .brand__img { height: 36px; }
.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.site-nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2rem); }
.site-nav__links a {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    font-size: .97rem;
    color: var(--ink-soft);
    padding: .35rem 0;
    transition: color .15s ease;
}
.site-nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -.1rem;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.site-nav__links a:hover { color: var(--brand-dk); }
.site-nav__links a:hover::after { transform: scaleX(1); }
.site-nav__cta { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.25rem); }
.site-nav__login {
    text-decoration: none; font-weight: 600; font-size: .95rem;
    color: var(--ink-soft); white-space: nowrap; transition: color .15s ease;
}
.site-nav__login:hover { color: var(--brand-dk); }
.site-nav .btn { min-height: 44px; padding: 0 1.4rem; white-space: nowrap; }
.site-nav a.btn--primary { color: #fff; }
@media (max-width: 760px) {
    .site-nav__links, .site-nav__login { display: none; }
}
@media (max-width: 420px) {
    .site-nav .btn { padding: 0 1.05rem; font-size: .92rem; }
}

/* --- Hero + generátor ----------------------------------------------------- */
.hero {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(2.75rem, 7vw, 5.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    scroll-margin-top: 70px;
}
.hero__inner { max-width: 820px; margin: 0 auto; }
.hero__eyebrow {
    display: inline-block;
    margin-bottom: 1.4rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dk);
    border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.hero__title { font-size: clamp(2.5rem, 6.6vw, 4.6rem); margin: 0 0 1.25rem; }
.hero__lead {
    font-size: clamp(1.1rem, 2.4vw, 1.32rem);
    color: var(--ink-soft);
    max-width: 56ch;
    margin: 0 auto 2.5rem;
}
.hero__lead .serif-italic { color: var(--brand-dk); }

/* staggered reveal */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .14s; }
.reveal-3 { animation-delay: .24s; }
.reveal-4 { animation-delay: .34s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

.gen-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    text-align: left;
    max-width: 720px;
    margin: 0 auto;
}
.gen-form__row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: flex-end; }
.gen-form__field { display: flex; flex-direction: column; gap: .4rem; flex: 1 1 160px; }
.gen-form__field--grow { flex: 2 1 250px; }
.gen-form__label {
    font-size: .73rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--ink-soft);
}
.gen-form__input, .gen-form__select {
    width: 100%;
    height: 54px;
    min-height: 54px;
    padding: 0 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--ink);
    background-color: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
/* select vizuálně identický s inputem – potlačit nativní vzhled, vlastní šipka */
.gen-form__select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235d5645' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
.gen-form__select::-ms-expand { display: none; }
.gen-form__input:focus, .gen-form__select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.gen-form__input::placeholder { color: var(--ink-faint); }
.gen-form__submit { flex: 1 1 150px; min-height: 54px; }
.gen-form__error { margin: 1rem 0 0; color: var(--brand-dk); font-weight: 600; font-size: .96rem; }

.gen-result { margin: 1.5rem auto 0; max-width: 720px; }
.gen-result__card {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.1rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.gen-result__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 200px at 50% -40%, rgba(200,31,166,.45), transparent 70%);
    pointer-events: none;
}
.gen-result__label {
    text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 700;
    color: #e89cd9; margin: 0; position: relative;
}
.gen-result__value {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(1.8rem, 5vw, 2.9rem); letter-spacing: -.01em; line-height: 1.1;
    margin: 0; position: relative;
}
.gen-result__copy {
    position: relative; background: rgba(255,255,255,.1); color: #fff;
    border-color: rgba(255,255,255,.28); box-shadow: none;
}
.gen-result__copy:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }
.hero__stat { margin-top: 1.75rem; color: var(--ink-faint); font-size: .95rem; }
.hero__stat strong { color: var(--ink-soft); font-weight: 700; }
@media (max-width: 560px) { .gen-form__submit { flex: 1 1 100%; } }

/* --- Ticker --------------------------------------------------------------- */
.ticker {
    border-block: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    overflow: hidden;
    margin-top: clamp(2.5rem, 6vw, 4rem);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
    display: flex; gap: 2.5rem; white-space: nowrap; padding: .95rem 0;
    width: max-content; animation: marquee 34s linear infinite;
    font-family: var(--serif); font-size: 1.15rem;
}
.ticker__item { color: var(--ink-soft); }
.ticker__item b { color: var(--ink); font-weight: 600; }
.ticker__item span { color: var(--brand); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* --- Sekce --------------------------------------------------------------- */
.block { padding-block: clamp(3.5rem, 8vw, 6rem); scroll-margin-top: 80px; }

.reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-on-scroll { opacity: 1; transform: none; transition: none; } }

/* jak to funguje */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .22s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
    font-family: var(--serif); font-size: 2.4rem; font-weight: 600; line-height: 1;
    width: 3.6rem; height: 3.6rem; display: grid; place-items: center;
    border-radius: 50%; background: var(--brand-soft); color: var(--brand);
}
.step__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 1.1rem 0 .5rem; }
.step__text { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* použití */
.usecases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.usecase {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.7rem;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .22s ease;
}
.usecase:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.usecase__tag {
    display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .12em; color: var(--brand-dk);
    background: var(--brand-soft); padding: .3rem .7rem; border-radius: 999px;
}
.usecase__title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin: .8rem 0 .55rem; }
.usecase__text { color: var(--ink-soft); margin: 0 0 1.1rem; }
.usecase__sample {
    font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink);
    border-left: 3px solid var(--brand); padding: .25rem 0 .25rem .9rem; margin: 0;
}
@media (max-width: 680px) { .usecases { grid-template-columns: 1fr; } }

/* ceník */
.pricing { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.1rem; align-items: stretch; }
.price-card { border-radius: var(--radius-lg); padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.price-card--free { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.price-card--api { background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.price-card--api::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(500px 200px at 100% 0%, rgba(200,31,166,.4), transparent 60%);
    pointer-events: none;
}
.price-card__kicker { position: relative; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-dk); }
.price-card--api .price-card__kicker { color: #e89cd9; }
.price-card__name { position: relative; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: .5rem 0 .25rem; }
.price-card__big { position: relative; font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 3.8rem); font-weight: 600; line-height: 1; margin: 1rem 0 .35rem; }
.price-card--free .price-card__big { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card__unit { position: relative; color: var(--ink-soft); margin: 0 0 1.4rem; }
.price-card--api .price-card__unit { color: #c9b6d6; }
.price-list { position: relative; list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .7rem; }
.price-list li { padding-left: 1.8rem; position: relative; }
.price-list li::before {
    content: "✓"; position: absolute; left: 0; top: -1px;
    width: 1.25rem; height: 1.25rem; display: grid; place-items: center;
    border-radius: 50%; font-size: .72rem; font-weight: 700;
    background: var(--brand-soft); color: var(--brand-dk);
}
.price-card--api .price-list li::before { background: rgba(232,156,217,.2); color: #f0b9e3; }
.price-card .btn { position: relative; width: 100%; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
    list-style: none; cursor: pointer; padding: 1.35rem .25rem;
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.3rem); font-weight: 600;
    transition: color .15s ease;
}
.faq-list summary:hover { color: var(--brand-dk); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+"; font-family: var(--sans); font-weight: 400; color: var(--brand);
    font-size: 1.7rem; line-height: 1; transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-answer { padding: 0 .25rem 1.5rem; color: var(--ink-soft); max-width: 68ch; }
.faq-list .faq-answer p { margin: 0; }

/* pro vývojáře */
.dev { background: var(--ink); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.dev::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(700px 320px at 12% 0%, rgba(200,31,166,.35), transparent 60%);
    pointer-events: none;
}
.dev__grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.dev h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .7rem 0 1rem; letter-spacing: -.025em; }
.dev p { color: #c9b6d6; margin: 0 0 1.6rem; }
.dev .eyebrow { color: #e89cd9; }
.dev__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.dev__doclink {
    font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap;
    color: #e89cd9; border-bottom: 1px solid transparent; transition: border-color .15s ease, color .15s ease;
}
.dev__doclink:hover { color: #fff; border-bottom-color: #fff; }
.code-block {
    background: #0c0d1a;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 1.3rem 1.5rem; overflow-x: auto;
    font-family: var(--mono); font-size: .9rem; line-height: 1.75; color: #e7e3f2;
}
.code-block .c-key { color: #e89cd9; }
.code-block .c-str { color: #8fd6c0; }
.code-block .c-com { color: #7a7596; }
@media (max-width: 760px) { .dev__grid { grid-template-columns: 1fr; } }

/* --- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(3rem, 7vw, 5rem); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.site-footer__inner {
    max-width: var(--maxw); margin: 0 auto; padding: clamp(2.25rem, 5vw, 3.25rem) var(--gutter);
    display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: space-between; align-items: flex-start;
}
.site-footer__brand { max-width: 34ch; }
.site-footer__brand p { color: var(--ink-soft); margin: .9rem 0 0; font-size: .95rem; }
.footer-col h4 { font-size: .73rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); margin: 0 0 .85rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: .96rem; transition: color .15s ease; }
.footer-col a:hover { color: var(--brand-dk); }
.site-footer__legal {
    border-top: 1px solid var(--line-soft); text-align: center;
    color: var(--ink-faint); font-size: .86rem; padding: 1.25rem var(--gutter);
}
.site-footer__legal a { color: var(--ink-soft); }
