/* Site-wide layout on top of Radzen's material-dark theme. Colours come from Radzen's --rz-* variables. */
:root {
    --site-max: 1180px;
    --site-narrow: 820px;
    --site-gutter: 20px;
    --site-muted: color-mix(in srgb, var(--rz-text-color) 68%, transparent);
    --site-line: color-mix(in srgb, var(--rz-text-color) 14%, transparent);
    --site-band: color-mix(in srgb, var(--rz-primary) 7%, var(--rz-base-background-color));
}

html, body { margin: 0; background: var(--rz-base-background-color); color: var(--rz-text-color); }
body { font-family: var(--rz-text-font-family); line-height: 1.6; -webkit-text-size-adjust: 100%; }
a { color: var(--rz-primary-light); }
code, pre, .mono input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { font-size: .92em; padding: .1em .35em; border-radius: 4px; background: var(--site-line); }
pre { overflow-x: auto; padding: 12px 14px; border-radius: 8px; background: var(--site-line); }
pre code { padding: 0; background: none; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.25; margin: 1.6em 0 .5em; }
h3 { font-size: 1.1rem; margin: 0 0 .3em; }
img { max-width: 100%; height: auto; }

/* Frame */
.site-layout { min-height: 100vh; grid-template-areas: "rz-header" "rz-body"; grid-template-columns: 1fr; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--site-line); }
.site-bar { max-width: var(--site-max); margin: 0 auto; padding: 6px var(--site-gutter); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rz-text-color); font-weight: 700; font-size: 1.2rem; }
.brand img { border-radius: 7px; }
.site-nav { flex: 1; background: transparent; }
.site-body { padding: 0; overflow-x: hidden; }
.site-footer { border-top: 1px solid var(--site-line); margin-top: 56px; padding: 28px var(--site-gutter) 40px; text-align: center; color: var(--site-muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 14px; }
.footer-links a { color: var(--site-muted); }
.risk { max-width: 760px; margin: 0 auto 8px; }
.copyright { margin: 0; }

/* Sections */
.page { max-width: var(--site-max); margin: 0 auto; padding: 40px var(--site-gutter) 8px; }
.page.narrow { max-width: var(--site-narrow); }
.band { background: var(--site-band); padding: 44px var(--site-gutter); }
.lead { font-size: 1.15rem; color: var(--site-muted); max-width: 70ch; }
.fine { font-size: .9rem; color: var(--site-muted); }
.note { margin: 24px 0; }

.hero { max-width: var(--site-max); margin: 0 auto; padding: 56px var(--site-gutter) 48px; display: grid; gap: 40px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.cta-row.center { justify-content: center; }
.link-button { text-decoration: none; }

.pillars { max-width: var(--site-max); margin: 0 auto; display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar h2 { margin: .4em 0 .3em; font-size: 1.2rem; }
.pillar p { margin: 0; color: var(--site-muted); }
.pillar-icon { font-size: 30px; color: var(--rz-primary-light); }
.closing { text-align: center; margin-top: 48px; }
.closing h2 { margin-top: 0; }

.split { display: grid; gap: 36px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; margin: 56px 0; scroll-margin-top: 80px; }
.split.reverse > :first-child { order: 2; }
.split h2 { margin-top: 0; }

.shot { margin: 0; }
.shot img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--site-line); box-shadow: 0 12px 40px color-mix(in srgb, var(--rz-base-background-color) 60%, transparent); }
.shot figcaption { font-size: .85rem; color: var(--site-muted); margin-top: 6px; }

.ticks { padding-left: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.6em; margin: .45em 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--rz-success); font-weight: 700; }

/* Downloads and plans */
.downloads, .plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 28px 0; }
.download { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.download h2, .plan h2 { margin: 0; font-size: 1.25rem; }
.download p { margin: 0; color: var(--site-muted); flex: 1; }
.download-icon { font-size: 34px; color: var(--rz-primary-light); }
.guide-link { font-size: .92rem; }
.plan { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.plan .ticks { flex: 1; }
.plan.featured { border-color: var(--rz-primary); }
.price { font-size: 1.6rem; font-weight: 700; margin: 0; }

/* Install steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; }
.step { counter-increment: step; position: relative; padding: 0 0 26px 54px; border-left: 2px solid var(--site-line); margin-left: 17px; }
.step:last-child { border-left-color: transparent; }
.step::before { content: counter(step); position: absolute; left: -18px; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--rz-primary); color: var(--rz-on-primary); }
.step-body { padding-left: 0; margin-left: -20px; }
.step-body p { margin: .3em 0 .6em; }
.step-body .shot { max-width: 560px; margin: 10px 0; }
.steps.compact .step { padding-bottom: 14px; }
.substeps { margin: .2em 0 .6em; padding-left: 1.3em; }
.advanced { margin: 6px 0 10px; }
.advanced summary { cursor: pointer; color: var(--rz-primary-light); }

/* Trial form */
.trial-card { margin: 28px 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mono input { letter-spacing: .04em; }

.compare { margin: 12px 0; }

/* Loading placeholder, before the app starts */
.boot { max-width: 680px; margin: 12vh auto 0; padding: 0 var(--site-gutter); text-align: center; color: var(--rz-text-color, #e5e7eb); }
.boot img { border-radius: 12px; }
.boot a { margin: 0 4px; }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; padding: 10px 20px; background: var(--rz-danger); color: var(--rz-on-danger); }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; top: 8px; }
#blazor-error-ui a { color: inherit; }

@media (max-width: 860px) {
    .hero, .split { grid-template-columns: 1fr; }
    .split.reverse > :first-child { order: 0; }
    .pillars { grid-template-columns: 1fr; }
    .hero { padding-top: 32px; }
    .bar-cta { display: none; }
    .site-nav { flex: 0; margin-left: auto; }
}

/* Room for a validation message, so the submit button doesn't jump when one appears or clears mid-click. */
.trial-card .rz-form-field-helper { min-height: 1.5em; }

/* Landing graphics: glows and a rising candle band behind the hero, and a lifted screenshot. */
.hero-wrap {
    position: relative;
    background:
        radial-gradient(60% 70% at 85% 20%, color-mix(in srgb, var(--rz-primary) 26%, transparent), transparent 70%),
        radial-gradient(40% 50% at 5% 90%, color-mix(in srgb, var(--rz-success) 14%, transparent), transparent 70%),
        url("../img/candles.svg") center bottom / 100% 70% no-repeat;
    border-bottom: 1px solid var(--site-line);
}
.hero-text h1 {
    background: linear-gradient(100deg, var(--rz-text-color) 30%, var(--rz-primary-light));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-shot img {
    transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
    box-shadow: 0 30px 80px color-mix(in srgb, var(--rz-primary) 30%, transparent), 0 0 0 1px var(--site-line);
    transition: transform .4s ease;
}
.hero-shot img:hover { transform: none; }
.pillar { transition: transform .2s ease, border-color .2s ease; }
.pillar:hover { transform: translateY(-3px); border-color: var(--rz-primary); }

/* Getting started */
.platform-tabs { margin: 24px 0 8px; }
.download-strip { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 16px 18px; margin: 8px 0 22px; border: 1px solid var(--site-line); border-radius: 10px; background: var(--site-band); }
.download-strip h3, .download-strip p { margin: 0; }
.faq { margin-bottom: 8px; }

@media (max-width: 860px) {
    .hero-shot img { transform: none; }
}
