@charset "utf-8";

/* ===========================================================================
   prismo.cz — marketing site
   ---------------------------------------------------------------------------
   Palette and typeface are the app's (frontend/src/index.css), so the site
   and the product read as one thing: blue = us / primary action / margin,
   teal = done / fine, amber = something still to fill in. Light only.

   The page is mostly large type on white. No eyebrow labels, no card grids,
   no dark slabs: a section is a heading, a sentence or two, and at most one
   picture that carries the point.
   =========================================================================== */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(fonts/plus-jakarta-sans-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;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(fonts/plus-jakarta-sans-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;
}

:root {
    color-scheme: light;

    --paper: #ffffff;
    --tint: #f6f6f7;
    --fill: #ececef;
    --ink: #111113;
    --body: #55555e;
    --quiet: #6b6b74;
    --line: #e4e4e7;
    --line-strong: #d5d5d9;

    --brand: #4c6fff;
    --brand-hover: #3a5be0;
    --brand-ink: #3355e0;
    --brand-quiet: #eef1ff;
    --down: #17b0a0;
    --down-ink: #0f7a6e;
    --up-ink: #9a5b00;
    --up-quiet: #fff4e5;

    --wrap: 1120px;
    --gutter: clamp(20px, 5vw, 48px);
    --band: clamp(72px, 10vw, 136px);
    --sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* --- Base ---------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    /* The sticky header (68px) must not cover a section jumped to from the nav. */
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: var(--brand-ink);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--brand-hover);
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

strong {
    font-weight: 700;
    color: var(--ink);
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 10;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.skip:focus {
    top: 12px;
    color: var(--paper);
}

/* --- Type ---------------------------------------------------------------- */

.display {
    font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 780;
    text-wrap: balance;
}

.h2 {
    max-width: 16ch;
    font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
    font-weight: 760;
    text-wrap: balance;
}

.h2--wide {
    max-width: 20ch;
}

.h3 {
    font-size: 1.1875rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    font-weight: 720;
}

.lede {
    max-width: 34ch;
    margin-top: 28px;
    font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem);
    line-height: 1.5;
    color: var(--body);
    text-wrap: pretty;
}

.prose {
    max-width: 44ch;
    margin-top: 24px;
    font-size: 1.1875rem;
    line-height: 1.55;
    color: var(--body);
    text-wrap: pretty;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    /* --brand (#4C6FFF) under white text is 4.18:1, short of AA for 17 px text;
       the app's own hover blue is 5.6:1. */
    background: var(--brand-hover);
    color: #fff;
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(17, 17, 19, 0.06), 0 8px 20px -10px rgba(76, 111, 255, 0.7);
    transition: background-color 0.2s ease, transform 0.12s ease;
    /* The one call to action is a long phrase; on a phone it wraps rather than overflows. */
    padding-block: 12px;
    text-align: center;
    line-height: 1.3;
}

.btn:hover {
    background: var(--brand-ink);
    color: #fff;
}

.btn:active {
    transform: translateY(1px);
}

/* --- Header -------------------------------------------------------------- */

.site-head {
    /* Always in view: the nav carries the one conversion action. */
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.site-head__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 1.1875rem;
    font-weight: 780;
    letter-spacing: -0.025em;
    text-decoration: none;
}

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

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 3vw, 28px);
    font-size: 0.9375rem;
    font-weight: 600;
}

.site-nav a {
    color: var(--body);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--ink);
}

.site-nav .site-nav__app {
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--ink);
    transition: border-color 0.2s ease;
}

.site-nav .site-nav__app:hover {
    border-color: var(--ink);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
    padding-block: clamp(56px, 9vw, 120px) clamp(72px, 10vw, 136px);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
}

.hero .btn {
    margin-top: 40px;
}

/* What happens after the click, right under it. */
.hero__note {
    margin-top: 14px;
    font-size: 0.9375rem;
    color: var(--body);
}

/* The hero's picture: the approval queue, drawn the way the app shows it — the
   first proposal open, two more collapsed below it. */
.queue {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 1px 2px rgba(17, 17, 19, 0.04), 0 24px 48px -24px rgba(51, 85, 224, 0.28);
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.queue__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.queue__title {
    font-size: 0.9375rem;
    font-weight: 720;
}

.queue__count {
    display: inline-block;
    min-width: 22px;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--brand-quiet);
    color: var(--brand-ink);
    font-size: 0.8125rem;
    text-align: center;
}

.queue__head .fakebtn {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

.proposal {
    padding: 24px 24px 22px;
    border-bottom: 1px solid var(--line);
}

.proposal__product {
    font-size: 0.9375rem;
    font-weight: 650;
    color: var(--body);
}

.proposal__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 10px;
    font-variant-numeric: tabular-nums;
}

.proposal__was {
    font-size: 1.375rem;
    color: var(--quiet);
}

.proposal__arrow {
    color: var(--quiet);
}

.proposal__now {
    font-size: 2.25rem;
    font-weight: 780;
    letter-spacing: -0.03em;
}

.proposal__why {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.5;
}

.proposal__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
}

.proposal__facts dt {
    font-size: 0.8125rem;
    color: var(--quiet);
}

.proposal__facts dd {
    margin-top: 2px;
    font-weight: 600;
}

.proposal__facts strong {
    color: var(--brand-ink);
}

.proposal__actions {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}

.queue__rows li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 14px 24px;
    font-variant-numeric: tabular-nums;
}

.queue__rows li + li {
    border-top: 1px solid var(--line);
}

.queue__name {
    font-size: 0.9375rem;
    font-weight: 650;
    color: var(--body);
}

.queue__price {
    font-size: 0.9375rem;
    color: var(--quiet);
    white-space: nowrap;
}

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

.queue__meta {
    grid-column: 1 / -1;
    font-size: 0.8125rem;
    color: var(--quiet);
}

.fakebtn {
    padding: 9px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
}

.fakebtn--primary {
    border-color: var(--brand-hover);
    background: var(--brand-hover);
    color: #fff;
}

.queue figcaption {
    position: absolute;
    right: 20px;
    bottom: -30px;
    font-size: 0.8125rem;
    color: var(--quiet);
}

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

/* --- Bands --------------------------------------------------------------- */

.band {
    padding-block: var(--band);
}

.band--tint {
    background: var(--tint);
}

/* Own-shop findings: the claim on the left, the three measured numbers on the right. */
.proof {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}

.stats dl {
    display: grid;
    gap: 22px;
}

.stats dt {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 780;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--brand-ink);
    font-variant-numeric: tabular-nums;
}

.stats dd {
    margin-top: 4px;
    max-width: 36ch;
    color: var(--body);
}

/* Short label first, so the number reads at a glance; the explanation follows on its own line. */
.stats dd b {
    display: block;
    font-weight: 650;
    color: var(--ink);
}


/* Margin section: the argument on the left, the bars that prove it on the right. */
.money {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
}

.bars {
    display: grid;
    gap: 28px;
}

.bars__label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bars__value {
    color: var(--brand-ink);
}

/* Widths are the example's arithmetic: 2 800 + 700 = 3 500 = 100 %,
   2 800 + 525 = 3 325 = 95 %. */
.bars__track {
    display: flex;
    height: 44px;
    width: 100%;
    gap: 3px;
}

.bars__row--cut .bars__track {
    width: 95%;
}

.bars__cost {
    flex: 2800 1 0;
    border-radius: 8px 0 0 8px;
    background: var(--fill);
}

.bars__margin {
    flex: 700 1 0;
    border-radius: 0 8px 8px 0;
    background: var(--brand);
}

.bars__row--cut .bars__margin {
    flex-grow: 525;
}

.bars figcaption {
    font-size: 0.875rem;
    color: var(--quiet);
}

/* What it does: four short claims, no boxes. */
.does {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(32px, 5vw, 72px);
    margin-top: 48px;
}

.does > div {
    padding-block: 26px;
    border-top: 1px solid var(--line-strong);
}

.does dt {
    font-size: 1.3125rem;
    font-weight: 720;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.does dd {
    margin-top: 6px;
    color: var(--body);
}

/* Who decides: a three-stop line, then the hard limits. */
.timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 56px;
}

.timeline li {
    position: relative;
    padding-top: 28px;
    border-top: 2px solid var(--line);
}

.timeline li::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--quiet);
}

.timeline li:last-child {
    border-top-color: var(--brand);
}

.timeline li:last-child::before {
    border-color: var(--brand);
    background: var(--brand);
}

.timeline__when {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--quiet);
}

.timeline li:last-child .timeline__when {
    color: var(--brand-ink);
}

.timeline p {
    margin-top: 6px;
    max-width: 26ch;
    font-size: 1.1875rem;
    line-height: 1.45;
    text-wrap: pretty;
}

.limits {
    max-width: 640px;
    margin-top: 72px;
}

.limits ul {
    margin-top: 14px;
}

.limits li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
}

.limits li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: calc(10px + 0.8em);
    width: 12px;
    height: 2px;
    background: var(--brand);
}

.limits p {
    margin-top: 22px;
    color: var(--body);
}

/* What we need: a checklist. */
.need {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 24px clamp(40px, 6vw, 88px);
}

.checklist li {
    position: relative;
    padding: 16px 0 16px 44px;
    border-bottom: 1px solid var(--line-strong);
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.4;
}

.checklist li:first-child {
    border-top: 1px solid var(--line-strong);
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 17px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--down);
}

/* The tick: two borders of a rotated box, so no image (CSP is img-src 'self'). */
.checklist li::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 22px;
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.need__note {
    grid-column: 2;
    color: var(--body);
}

/* How to start: offer on the left, the form on the right. */
.start-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.terms__title {
    margin-top: 36px;
}

.terms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    margin-top: 14px;
}

.terms dt {
    font-size: 0.875rem;
    color: var(--quiet);
}

.terms dd {
    font-weight: 650;
}

/* The person behind the offer, under the terms: a name to buy from, not a testimonial. */
.founder {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    color: var(--body);
}

.founder__photo {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--tint);
}

/* On a tinted band the form card is the white one. */
.band--tint .form {
    background: var(--paper);
}

.field {
    display: grid;
    gap: 6px;
}

.field--wide {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.875rem;
    font-weight: 650;
}

.hint {
    font-weight: 500;
    color: var(--quiet);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.field textarea {
    resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--quiet);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 0;
    border-color: var(--brand);
}

.form .btn {
    margin-top: 4px;
}

.form__note {
    font-size: 0.875rem;
    color: var(--body);
}

/* The honeypot: a field a person never sees and a spam bot fills in. Moved off
   screen rather than display:none, which some bots skip. */
.field--trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* The answer pages after a submit: one heading, one sentence, a way back. */
.sent {
    max-width: 640px;
}

.sent .prose {
    margin-top: 16px;
}

.mail {
    overflow-wrap: anywhere;
}

/* --- Footer -------------------------------------------------------------- */

.site-foot {
    padding-block: 48px;
    border-top: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--body);
}

.site-foot a {
    color: var(--body);
}

.site-foot a:hover {
    color: var(--ink);
}

.foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px 48px;
}

.foot p + p {
    margin-top: 6px;
}

.foot__legal {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px 16px;
}

.foot__legal dt {
    color: var(--quiet);
}

/* An unfilled placeholder must be impossible to miss. */
.todo {
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--up-quiet);
    color: var(--up-ink);
    font-family: var(--mono);
    font-size: 0.85em;
    font-weight: 600;
}

/* --- Privacy page -------------------------------------------------------- */

.legal-page {
    padding-block: clamp(48px, 6vw, 88px);
}

.legal-page .wrap {
    max-width: 780px;
}

.legal-page h1 {
    font-weight: 760;
    font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.legal-page h2 {
    font-size: 1.1875rem;
    font-weight: 720;
    letter-spacing: -0.015em;
    margin: 40px 0 10px;
}

.legal-page p,
.legal-page li {
    color: var(--body);
    text-wrap: pretty;
}

.legal-page p + p {
    margin-top: 12px;
}

.legal-page ul {
    padding-left: 20px;
    list-style: disc;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-page .updated {
    font-size: 0.875rem;
    color: var(--quiet);
}

.back {
    display: inline-block;
    margin-bottom: 28px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

/* --- Small screens ------------------------------------------------------- */

@media (max-width: 900px) {
    .hero__grid,
    .proof,
    .money,
    .need,
    .start-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .need__note {
        grid-column: 1;
    }

    .queue {
        max-width: 480px;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 1rem;
    }

    .site-nav .site-nav__minor {
        display: none;
    }

    .does,
    .timeline {
        grid-template-columns: minmax(0, 1fr);
    }

    .timeline {
        gap: 28px;
    }

    .form {
        grid-template-columns: minmax(0, 1fr);
    }

    .proposal {
        padding: 20px;
    }

    .queue__head,
    .queue__rows li {
        padding-inline: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .queue {
        animation: none;
    }

    * {
        transition: none !important;
    }
}
