/*
 * The public site's own layout: header, footer, hero, sections, cards, steps, screenshots and legal prose. The brand
 * (tokens, fonts, type, chips, buttons, panels, the layers and the plans) is brand.css in Shiva.Web.Brand, loaded first;
 * this file declares no token and no font. No inline styles in the pages (the Content-Security-Policy allows only these
 * files).
 */

body { background: var(--c-bg); }
.st-skip:focus { position: fixed; top: 0.5rem; left: 0.5rem; width: auto; height: auto; clip: auto; margin: 0; padding: 0.5rem 1rem; z-index: 100; background: var(--c-blue); color: #fff; border-radius: var(--r-sm); }

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

.st-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 14, 27, 0.92); border-bottom: 1px solid var(--c-border); backdrop-filter: blur(8px); }
.st-header-inner { max-width: 1200px; margin: 0 auto; min-height: var(--topbar); padding: 0.5rem 1.5rem; display: flex; align-items: center; gap: 2rem; }
.st-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--c-text); text-decoration: none; flex: none; }
.st-brand .vv-mark { width: 26px; height: 26px; }
.st-brand-text { display: flex; flex-direction: column; }
.st-brand-text .vv-code { font-size: 10px; line-height: 14px; }
.st-logotype { font-size: 17px; line-height: 20px; color: var(--c-text); }
.st-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.st-nav a { padding: 0.5rem 0.75rem; border-radius: var(--r-sm); color: var(--c-text-2); font: 500 14px/20px var(--f-head); text-decoration: none; }
.st-nav a:hover { color: var(--c-text); background: var(--c-raised); }
.st-nav a[aria-current=page] { color: var(--c-cyan); background: rgba(56, 189, 248, 0.08); }
.st-signin { flex: none; }

/* ---- Page frame ---------------------------------------------------------------------------------------------------- */

.st-main { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 5rem; display: flex; flex-direction: column; gap: 5rem; }
/* A flex child with auto margins (the brand's .vv-page) would size to its widest content, the pricing comparison: it
   takes the column's width instead, and the comparison scrolls in its own region. */
.st-main > * { min-width: 0; width: 100%; }
.st-page { display: flex; flex-direction: column; gap: 2.5rem; }
.st-page-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 52rem; }
.st-lead { font-size: 18px; line-height: 30px; color: var(--c-on-surface); }
.st-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---- Home ---------------------------------------------------------------------------------------------------------- */

.st-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; align-items: center; }
.st-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.st-hero h1 { font-size: 44px; line-height: 54px; letter-spacing: -0.01em; }
.st-section { display: flex; flex-direction: column; gap: 2rem; }
.st-section-head { display: flex; flex-direction: column; gap: 0.75rem; max-width: 52rem; }
.st-section h2, .st-cta h2 { font: 600 30px/38px var(--f-head); color: var(--c-text); }
.st-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 1rem; }
.st-cards-wide { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.st-card { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; border-radius: var(--r-xl); background: var(--c-raised); }
.st-card h3 { font: 600 17px/24px var(--f-head); color: var(--c-text); }
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.st-step { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: var(--r-xl); background: var(--c-raised); border-top: 2px solid var(--c-blue); }
.st-step h3 { font: 600 17px/24px var(--f-head); color: var(--c-text); margin-bottom: 0.4rem; }

.st-shot { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.st-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-xl); border: 1px solid var(--c-border-strong); background: var(--c-lowest); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6); }
.st-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1.5rem; }

.st-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem; border-radius: var(--r-xl); background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(56, 189, 248, 0.06)); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.2); }
.st-cta > div:first-child { display: flex; flex-direction: column; gap: 0.5rem; max-width: 40rem; }

/* ---- How it works ------------------------------------------------------------------------------------------------- */

.st-journey { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.st-journey-step { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.75rem; border-radius: var(--r-xl); background: var(--c-raised); }
.st-journey-step > div { display: flex; flex-direction: column; gap: 0.75rem; max-width: 52rem; }
.st-journey-step h2 { font: 600 22px/30px var(--f-head); color: var(--c-text); }
.st-list { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.st-tech dd { font-size: 14px; line-height: 22px; }

/* ---- Security and pricing ----------------------------------------------------------------------------------------- */

.st-plain { font-size: 14px; line-height: 22px; color: var(--c-text); }
.st-status-meaning { display: inline; }
.st-plain-panel { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 2rem; border-radius: var(--r-xl); background: var(--c-raised); }

/* ---- Legal prose -------------------------------------------------------------------------------------------------- */

.st-prose { max-width: 48rem; }
.st-prose section { display: flex; flex-direction: column; gap: 0.75rem; }
.st-prose h2 { font: 600 20px/28px var(--f-head); color: var(--c-text); }

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

.st-footer { border-top: 1px solid var(--c-border); background: var(--c-lowest); }
.st-footer-inner { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; }
.st-footer-brand { display: flex; align-items: flex-start; gap: 0.75rem; max-width: 24rem; }
.st-footer-brand .vv-mark { width: 26px; height: 26px; }
.st-footer-brand p { margin-top: 0.5rem; }
.st-footer-nav { display: flex; flex-wrap: wrap; gap: 3rem; }
.st-footer-nav > div { display: flex; flex-direction: column; gap: 0.5rem; }
.st-footer-nav a { color: var(--c-text-2); font-size: 14px; }
.st-footer-nav a:hover { color: var(--c-cyan); }
/* A block (the brand makes .vv-code.vv-muted inline-flex), so its auto margins line it up with the footer above. */
.st-footer .st-footer-note { display: block; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 2rem; }
/* Shown only on narrow screens (below). */
.st-scroll-hint { display: none; }

/* ---- Narrow screens ------------------------------------------------------------------------------------------------ */

@media (max-width: 1023px) {
    .st-hero { grid-template-columns: minmax(0, 1fr); }
    .st-hero h1 { font-size: 36px; line-height: 44px; }
    .st-header-inner { gap: 1rem; }
    .st-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .st-header-inner { flex-wrap: wrap; padding: 0.5rem 1rem; gap: 0.5rem; }
    .st-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
    .st-nav a { padding: 0.4rem 0.6rem; font-size: 13px; white-space: nowrap; }
    .st-signin { margin-left: auto; }
    .st-main { padding: 2rem 1rem 4rem; gap: 3.5rem; }
    .st-hero h1 { font-size: 30px; line-height: 38px; }
    .st-section h2, .st-cta h2 { font-size: 24px; line-height: 32px; }
    .st-journey-step { flex-direction: column; padding: 1.25rem; }
    .st-steps { grid-template-columns: minmax(0, 1fr); }
    .st-cta { padding: 1.5rem; }
    .st-footer-inner { padding: 2rem 1rem; }
    .st-footer .st-footer-note { padding: 0 1rem 2rem; }

    /* The usage rates stack one rate per block, so no price is ever cut off at the screen's edge. */
    .st-rates thead { display: none; }
    .st-rates, .st-rates tbody, .st-rates tr, .st-rates td { display: block; width: 100%; }
    .st-rates tr { padding: 0.75rem 0; border-bottom: 1px solid var(--c-border); }
    .st-rates td { padding: 0; border-bottom: 0; white-space: normal; }
    .st-rates td + td { margin-top: 0.25rem; }

    /* The comparison stays a table, scrolled sideways: the feature column stays put and a hint says to swipe. */
    .st-scroll-hint { display: block; }
    .vv-compare th:first-child { width: 8.5rem; }
    .vv-compare th:first-child, .vv-compare th[scope=row] { position: sticky; left: 0; z-index: 1; background: var(--c-raised); }
}
