/* ==========================================================================
   Kasir POS — Public landing page
   Built on the same tokens as the app, so the marketing front and the
   product behind it never drift apart visually.
   ========================================================================== */

.page { display: flex; flex-direction: column; min-height: 100vh; }

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

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    max-width: 1140px; margin: 0 auto;
    padding: 12px 24px;
    display: flex; align-items: center; gap: 18px;
}

.site-brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.site-brand:hover { color: var(--text); }

/* The lockup carries the name itself, so it is sized to be read rather than
   tucked into a corner. Height drives it; width follows the aspect ratio. */
.site-brand__logo {
    height: 52px; width: auto;
    display: block;
    transition: opacity .15s ease;
}
.site-brand:hover .site-brand__logo { opacity: .85; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.site-nav__link {
    padding: 8px 13px;
    border-radius: var(--r-sm);
    font-size: 13.5px; font-weight: 550;
    color: var(--text-muted);
    transition: background .13s ease, color .13s ease;
}
.site-nav__link:hover { background: var(--surface-hover); color: var(--text); }

.site-header__actions { display: flex; align-items: center; gap: 8px; }

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

.hero {
    position: relative;
    padding: 84px 24px 72px;
    text-align: center;
    background:
        radial-gradient(1200px 620px at 50% -12%, rgba(99, 102, 241, .16), transparent 62%),
        radial-gradient(900px 520px at 92% 8%, rgba(16, 185, 129, .10), transparent 58%);
}

.hero__inner { max-width: 820px; margin: 0 auto; }

.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 15px; border-radius: var(--r-full);
    background: var(--surface); border: 1px solid var(--border);
    font-size: 12.5px; font-weight: 600; color: var(--text-muted);
    box-shadow: var(--sh-xs);
}

.hero h1 {
    font-size: clamp(34px, 5.4vw, 56px);
    line-height: 1.06;
    letter-spacing: -.04em;
    margin: 22px 0 18px;
}

/* The one phrase the eye should land on first. */
.hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--brand-500), #a855f7 55%, var(--brand-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lede {
    font-size: clamp(15px, 1.6vw, 17.5px);
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 620px; margin: 0 auto;
}

.hero__actions {
    display: flex; gap: 11px; justify-content: center; flex-wrap: wrap;
    margin-top: 30px;
}

.hero__note { margin-top: 16px; font-size: 12.5px; color: var(--text-subtle); }

/* --- Shared section furniture -------------------------------------------- */

.section { padding: 68px 24px; }
.section--sunken { background: var(--bg-elevated); border-block: 1px solid var(--border); }
.section__inner { max-width: 1140px; margin: 0 auto; }

.section__head { text-align: center; max-width: 620px; margin: 0 auto 40px; }

.section__eyebrow {
    font-size: 11.5px; font-weight: 680;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--brand-600);
}

.section__title {
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -.03em;
    margin: 10px 0 12px;
}

.section__lede { color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* --- The two doors ------------------------------------------------------- */

.gate { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.gate__card {
    display: block; padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-sm);
    color: var(--text);
    transition: transform .18s cubic-bezier(.16, 1, .3, 1),
                box-shadow .18s ease, border-color .18s ease;
}
.gate__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
    border-color: var(--brand-400);
    color: var(--text);
}

.gate__icon {
    width: 50px; height: 50px; border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-50); color: var(--brand-600);
    margin-bottom: 18px;
}
.gate__card--pos .gate__icon { background: var(--ok-50); color: var(--ok-600); }

.gate__title { font-size: 19px; letter-spacing: -.02em; }
.gate__text { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; margin-top: 8px; }

.gate__list { margin: 16px 0 0; padding: 0; list-style: none; }
.gate__list li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; color: var(--text-muted);
    padding: 4px 0;
}
.gate__list svg { flex: 0 0 15px; margin-top: 2px; color: var(--ok-600); }

.gate__cta { display: flex; align-items: center; gap: 7px; margin-top: 20px; font-size: 13.5px; font-weight: 620; }

/* --- Features ------------------------------------------------------------ */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.feature-card {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    transition: transform .16s ease, box-shadow .16s ease;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.feature-card__icon {
    width: 42px; height: 42px; border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-50); color: var(--brand-600);
    margin-bottom: 16px;
}

.feature-card__title { font-size: 15.5px; letter-spacing: -.015em; }
.feature-card__text { color: var(--text-muted); font-size: 13.5px; line-height: 1.62; margin-top: 7px; }

/* --- Role comparison ----------------------------------------------------- */

.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.role-card {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
}

.role-card__list { margin: 16px 0 0; padding: 0; list-style: none; }
.role-card__list li {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 6px 0;
    font-size: 13px;
    border-top: 1px solid var(--border);
}
.role-card__list li:first-child { border-top: 0; }
.role-card__list svg { flex: 0 0 15px; margin-top: 2px; }

/* --- Closing call -------------------------------------------------------- */

.closing {
    max-width: 1140px; margin: 0 auto;
    padding: 46px 40px;
    border-radius: var(--r-2xl);
    background: linear-gradient(150deg, var(--brand-700), var(--brand-800) 55%, #1e1b4b);
    color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    gap: 26px; flex-wrap: wrap;
    box-shadow: var(--sh-lg);
}
.closing h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.03em; }
.closing p { opacity: .8; font-size: 14.5px; margin-top: 8px; max-width: 520px; line-height: 1.6; }

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

.site-footer {
    margin-top: auto;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 52px 24px 0;
}

.site-footer__inner { max-width: 1140px; margin: 0 auto; }

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding-bottom: 40px;
}

/* Larger than the header: down here it is the anchor of the whole block. */
.site-footer__logo { height: 58px; width: auto; display: block; }

.site-footer__title {
    font-size: 11.5px; font-weight: 680;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--text-subtle);
    margin-bottom: 14px;
}

.site-footer__link {
    display: block;
    padding: 5px 0;
    font-size: 13.5px;
    color: var(--text-muted);
}
.site-footer__link:hover { color: var(--brand-600); }

.site-footer__bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0 26px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--text-subtle);
}

.site-footer__credit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 960px) {
    .feature-grid, .role-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
    /* The anchor links are the first thing to go: the two action buttons
       are what a visitor actually came for. */
    .site-nav { display: none; }
    .site-header__inner { padding: 10px 16px; gap: 10px; }
    .site-header__actions { margin-left: auto; flex: 0 0 auto; }

    /* The logo yields first — the two entrance buttons are the point of the
       header, so they never get squeezed off the edge. */
    .site-brand { min-width: 0; }
    .site-brand__logo { max-width: 100%; object-fit: contain; object-position: left; }

    .site-brand__logo { height: 34px; }
    .site-footer__logo { height: 46px; }

    .hero { padding: 56px 20px 48px; }
    .section { padding: 48px 20px; }
    .gate, .feature-grid, .role-grid { grid-template-columns: 1fr; }
    .closing { padding: 32px 24px; }
    .site-footer__grid { grid-template-columns: 1fr; }
}
