/*
 * Radiant Canvas pages. Follows the app's design (krea2-app/DESIGN.md):
 * always dark, pictures on a dark ground, one glass material for chrome only
 * (toolbar, panels, rail, capsules), plain cards inside panels, system blue for
 * what is picked and the one main action, 20px panels and 14px picture corners.
 */

:root {
    color-scheme: dark;
    --ground: #121216;
    --sheet: #1b1b1f;
    --card: rgba(255, 255, 255, .055);
    --card-hover: rgba(255, 255, 255, .085);
    --line: rgba(255, 255, 255, .085);
    --line-strong: rgba(255, 255, 255, .14);
    --text: #fff;
    --soft: rgba(255, 255, 255, .72);
    --faint: rgba(255, 255, 255, .48);
    --accent: #0a84ff;
    --accent-hover: #2e95ff;
    --accent-text: #5eb0ff;
    --selection: rgba(10, 132, 255, .2);
    --green: #32d74b;
    --orange: #ff9f0a;
    --radius: 20px;
    --picture-radius: 14px;
    --card-radius: 12px;
    --margin: 8px;
    --page: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --glass-fill: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)), rgba(66, 66, 76, .42);
    --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .08);
    --glass-shadow: 0 18px 50px rgba(0, 0, 0, .34);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--ground);
    color: var(--text);
    font: 400 17px/1.55 var(--font);
    letter-spacing: -.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #8cc6ff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; }
strong { font-weight: 600; color: var(--text); }
ul, ol { margin: 0; padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
::selection { background: rgba(10, 132, 255, .45); }

.rc-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rc-skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; }
.rc-skip-link:focus { top: 12px; color: #fff; }

/* ---------- Glass: the one material, for chrome only ---------- */

.rc-nav, .rc-rail, .rc-hero-copy, .rc-final-cta, .rc-new-pill, .rc-text-link, .rc-trial-link, .rc-rename,
.rc-press-jump, .rc-asset-download, .rc-guide-link, .rc-tabs, .rc-bar-legend {
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    backdrop-filter: blur(28px) saturate(170%);
    box-shadow: var(--glass-edge), var(--glass-shadow);
}

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

.rc-shell { position: relative; min-height: 100vh; isolation: isolate; }

/* Sub pages sit on the app's empty-canvas backdrop, a still gradient (never a live blur). */
.krealize-dark .rc-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 50% at 12% 8%, rgba(86, 110, 140, .55), transparent 70%),
        radial-gradient(55% 45% at 92% 18%, rgba(70, 112, 116, .45), transparent 70%),
        radial-gradient(70% 60% at 50% 100%, rgba(52, 62, 84, .55), transparent 70%),
        var(--ground);
}

.rc-rename {
    position: relative;
    z-index: 3;
    width: fit-content;
    max-width: calc(100% - 2 * var(--margin));
    margin: var(--margin) auto 0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--soft);
    text-align: center;
    box-shadow: var(--glass-edge);
}
.rc-rename strong { color: var(--text); }

/* ---------- Toolbar ---------- */

.rc-nav {
    position: sticky;
    top: var(--margin);
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: calc(100% - 2 * var(--margin));
    max-width: 1400px;
    margin: var(--margin) auto 0;
    padding: 6px;
    border-radius: 999px;
}
.rc-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); justify-self: start; padding-right: 8px; }
.rc-brand:hover { color: var(--text); }
.rc-brand img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.rc-brand span { display: grid; line-height: 1.15; min-width: 0; }
.rc-brand strong { font-size: 14px; white-space: nowrap; }
.rc-brand small { font-size: 11.5px; color: var(--faint); white-space: nowrap; }

.rc-switcher {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px var(--line);
}
.rc-switcher a {
    padding: 6px 13px;
    border-radius: 999px;
    color: var(--soft);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}
.rc-switcher a:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.rc-switcher a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .16); }

.rc-nav-cta {
    justify-self: end;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.rc-nav-cta:hover { background: var(--accent-hover); color: #fff; }

@media (max-width: 1100px) {
    .rc-nav-press { display: none; }
}
@media (max-width: 960px) {
    .rc-nav { grid-template-columns: minmax(0, 1fr) auto; border-radius: 26px; row-gap: 6px; }
    .rc-switcher { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
    .rc-switcher::-webkit-scrollbar { display: none; }
    .rc-nav-press { display: block; }
}
@media (max-width: 420px) {
    .rc-brand small { display: none; }
    .rc-nav-cta { padding: 8px 13px; font-size: 13px; }
}

/* ---------- Rail (landing page) ---------- */

.rc-rail {
    position: fixed;
    right: var(--margin);
    top: 50%;
    z-index: 15;
    display: grid;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    transform: translateY(-50%);
}
.rc-rail a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--soft);
    transition: background-color .15s, color .15s;
}
.rc-rail a:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.rc-rail a[aria-current] { background: #fff; color: #111; }
.rc-rail svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1340px) { .rc-rail { display: none; } }
@media (min-width: 1341px) { html .krealize-home main > .rc-hero { padding-right: max(72px, calc((100% - 1400px) / 2)); } }

/* ---------- Shared pieces ---------- */

main { display: block; outline: none; }

.rc-eyebrow {
    margin: 0 0 12px;
    color: var(--accent-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
}

.rc-section-head { max-width: 760px; margin-bottom: 40px; }
.rc-section-head h2 { margin-bottom: 18px; }
.rc-section-head p { color: var(--soft); }
.rc-section-head > p:not(.rc-eyebrow) { font-size: 18px; }

.rc-copy-link { color: var(--accent-text); font-weight: 500; }
.rc-copy-link::after, .rc-guide-callout a::after { content: " →"; }


.rc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* The main action: system blue, like .glassProminent. */
.rc-store-button, .rc-press-primary {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 52px;
    padding: 8px 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    line-height: 1.15;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 30px rgba(10, 132, 255, .28);
    transition: background-color .15s, transform .15s;
}
.rc-store-button small { font-size: 11.5px; opacity: .85; }
.rc-store-button strong { font-size: 17px; color: #fff; }
.rc-store-button:hover, .rc-press-primary:hover { background: var(--accent-hover); color: #fff; }
.rc-store-button:active, .rc-press-primary:active { transform: scale(.98); }
.rc-press-primary { font-weight: 600; }

/* Secondary actions: glass capsules, like shadedGlassButton(). */
.rc-text-link, .rc-trial-link, .rc-asset-download, .rc-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    box-shadow: var(--glass-edge);
    transition: background-color .15s;
}
.rc-text-link:hover, .rc-trial-link:hover, .rc-asset-download:hover, .rc-guide-link:hover { color: var(--text); background: rgba(90, 90, 104, .55); }

/* Pictures: rounded corners at every size. */
.rc-guide-image img, .rc-press-gallery img {
    border-radius: var(--picture-radius);
    box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .45);
    background: var(--sheet);
}

/* Tables sit on a solid sheet, like the Gallery's content sheet. */
.rc-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    background: var(--sheet);
    box-shadow: 0 0 0 1px var(--line);
}
.rc-table-wrap table { min-width: 560px; font-size: 15px; }
.rc-table-wrap caption { caption-side: top; padding: 18px 20px 6px; text-align: left; color: var(--soft); font-size: 14px; }
.rc-table-wrap caption strong { display: block; color: var(--text); font-size: 16px; }
.rc-table-wrap caption span { color: var(--faint); }
.rc-table-wrap th, .rc-table-wrap td { padding: 13px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.rc-table-wrap thead th { border-top: 0; color: var(--faint); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding-top: 16px; padding-bottom: 10px; }
.rc-table-wrap tbody th { font-weight: 600; color: var(--text); }
.rc-table-wrap td { color: var(--soft); }
.rc-table-wrap tbody tr:hover { background: rgba(255, 255, 255, .025); }

/* Disclosure rows on a sheet. */
.rc-faq > h2, .rc-faq details { max-width: 860px; }
.rc-faq > h2 { margin-bottom: 28px; }
.rc-faq details {
    border-radius: var(--card-radius);
    background: var(--card);
    margin-bottom: 8px;
    transition: background-color .15s;
}
.rc-faq details[open] { background: var(--card-hover); }
.rc-faq summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 16px 52px 16px 20px;
    font-weight: 600;
    font-size: 16.5px;
}
.rc-faq summary::-webkit-details-marker { display: none; }
.rc-faq summary::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.8px solid var(--faint);
    border-bottom: 1.8px solid var(--faint);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s;
}
.rc-faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.rc-faq details p { padding: 0 20px 18px; color: var(--soft); }

/* ---------- Landing page ---------- */

.krealize-home main > section { width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 80px 0; }

/* Hero: a picture ground, the copy on a glass panel, the app beside it. */
.krealize-home main > .rc-hero {
    position: relative;
    width: 100%;
    max-width: none;
    margin-top: calc(-1 * (52px + 2 * var(--margin)));
    padding: calc(52px + 2 * var(--margin) + 56px) max(var(--gutter), calc((100% - 1400px) / 2)) 64px;
    display: grid;
    grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    isolation: isolate;
}
/* The picture also runs on under the rename notice above the toolbar. */
.rc-hero::before {
    content: "";
    position: absolute;
    inset: -160px 0 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(18, 18, 22, .25) 0%, rgba(18, 18, 22, .55) 60%, var(--ground) 100%),
        url("/radiant-canvas-assets/ground-greyhound.webp") center / cover no-repeat,
        var(--ground);
}
.rc-hero-copy { position: relative; z-index: 1; padding: 28px; border-radius: var(--radius); }
.rc-new-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin-bottom: 22px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--glass-edge);
}
.rc-new-pill span { padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; white-space: nowrap; }
.rc-new-pill i { font-style: normal; color: var(--faint); }
.rc-new-pill:hover { color: var(--text); background: rgba(90, 90, 104, .55); }
.rc-hero h1 { font-size: clamp(36px, 3.6vw, 52px); margin-bottom: 18px; }
.rc-hero h1 span { color: var(--soft); }
.rc-lede { color: var(--soft); font-size: 17px; margin-bottom: 24px; }
.rc-hero .rc-actions { margin-bottom: 14px; }
.rc-hero .rc-store-button { flex: 1 1 auto; align-items: center; }
.rc-hero-fineprint { color: var(--faint); font-size: 13px; }
.rc-hero-fineprint a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.rc-hero-shot { margin: 0; min-width: 0; }
.rc-hero-shot img { width: 100%; border-radius: var(--picture-radius); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .55); }

/* At a glance. */
.krealize-home main > .rc-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 0 24px; }
.rc-facts p { margin: 0; padding: 16px 18px; border-radius: var(--card-radius); background: var(--card); }
.rc-facts strong { display: block; font-size: 16px; margin-bottom: 2px; }
.rc-facts span { display: block; color: var(--faint); font-size: 13.5px; line-height: 1.4; }

/* Workspaces: a switcher like the app's, one stage per workspace. */
.rc-tabs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    gap: 2px;
    margin: -12px 0 24px;
    padding: 4px;
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
}
.rc-tabs[hidden] { display: none; }
.rc-tabs::-webkit-scrollbar { display: none; }
.rc-tabs button {
    flex: none;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--soft);
    font: 500 15px var(--font);
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.rc-tabs button:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.rc-tabs button[aria-selected="true"] { color: var(--text); background: rgba(255, 255, 255, .18); }

.rc-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 8px;
    padding: 8px;
    border-radius: calc(var(--radius) + 8px);
    background: var(--sheet);
    box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .35);
    scroll-margin-top: 96px;
}
.rc-stage[hidden] { display: none; }
.rc-workspaces:not(.is-tabbed) .rc-stage + .rc-stage { margin-top: 16px; }
.rc-stage figure { margin: 0; min-width: 0; }
.rc-stage img { width: 100%; border-radius: var(--picture-radius); }
.rc-stage-panel { display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius); background: var(--card); }
.rc-stage-panel h3 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 10px; }
.rc-stage-panel > p { color: var(--soft); font-size: 16px; }
.rc-stage-panel ul { list-style: none; padding: 0; margin: 4px 0 20px; display: grid; gap: 6px; }
.rc-stage-panel li { padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .22); color: var(--soft); font-size: 14.5px; line-height: 1.45; }
.rc-stage-panel .rc-copy-link { margin-top: auto; font-size: 15px; }
.rc-sizes { display: flex; gap: 2px; padding: 3px; margin: 4px 0 8px; border-radius: 10px; background: rgba(0, 0, 0, .3); }
.rc-sizes span { flex: 1; padding: 6px 0; border-radius: 8px; text-align: center; color: var(--soft); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rc-sizes span:last-child { background: var(--selection); color: var(--text); box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .45); }

.rc-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.rc-more p { margin: 0; padding: 16px 18px; border-radius: var(--card-radius); background: var(--card); }
.rc-more strong { display: block; font-size: 15px; margin-bottom: 2px; }
.rc-more span { display: block; color: var(--faint); font-size: 13.5px; line-height: 1.4; }

/* Models. */
.rc-model-list { min-width: 720px !important; }
.rc-model-list tbody th { width: 26%; }
.rc-model-list tbody th small { display: block; margin-top: 2px; color: var(--faint); font-size: 12.5px; font-weight: 500; }
.rc-model-list td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.rc-model-list td:nth-child(4) { width: 25%; }
.rc-model-list-tool th, .rc-model-list-tool td { border-top-color: var(--line-strong) !important; }

.rc-precision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 56px 0; }
.rc-precision figure { margin: 0; }
.rc-precision img { border-radius: var(--picture-radius); box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .45); }
.rc-precision h3, .rc-speed h3 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 12px; }
.rc-precision p, .rc-speed p { color: var(--soft); }

.rc-speed { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.rc-bars { padding: 24px; border-radius: var(--radius); background: var(--sheet); box-shadow: 0 0 0 1px var(--line); }
.rc-bar-legend { display: inline-flex; gap: 14px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--soft); }
.rc-bar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rc-bar-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.rc-bar-legend span + span::before { background: rgba(255, 255, 255, .42); }
.rc-bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 104px; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.rc-bar-row > span { font-size: 14.5px; font-weight: 500; }
.rc-bar-lines { display: grid; gap: 5px; }
.rc-bar-lines i { display: block; height: 7px; border-radius: 999px; }
.rc-bar-fast { width: var(--fast); background: var(--accent); }
.rc-bar-standard { width: var(--standard); background: rgba(255, 255, 255, .42); }
.rc-bar-values { display: flex; justify-content: flex-end; gap: 10px; font-variant-numeric: tabular-nums; font-size: 14px; }
.rc-bar-values b:first-child { color: var(--accent-text); font-weight: 600; }
.rc-bar-values b:last-child { color: var(--soft); font-weight: 500; }

/* Cards used by privacy and requirements. */
.rc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rc-cards article { padding: 22px; border-radius: var(--radius); background: var(--card); }
.rc-cards h3 { font-size: 17px; margin-bottom: 8px; }
.rc-cards p { color: var(--soft); font-size: 15px; }
.rc-section-note { margin-top: 20px; }

/* Sample images. */
.rc-generation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rc-generation-grid figure { margin: 0; }
.rc-generation-grid img { border-radius: var(--picture-radius); box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .45); }
.rc-generation-grid figcaption { margin-top: 10px; color: var(--faint); font-size: 13.5px; }

/* Plans. */
.rc-plan-table-wrap { margin-bottom: 16px; }
.rc-plan-table th:nth-child(n+2), .rc-plan-table td { text-align: center; width: 120px; }
.rc-plan-name, .rc-pro-label { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; color: var(--text); background: rgba(255, 255, 255, .1); }
.rc-pro-label { background: var(--accent); color: #fff; }
.rc-yes, .rc-no { display: inline-block; width: 22px; height: 22px; border-radius: 50%; font-size: 0; vertical-align: middle; position: relative; }
.rc-yes { background: rgba(50, 215, 75, .16); }
.rc-yes::after { content: ""; position: absolute; left: 7.5px; top: 4.5px; width: 5px; height: 9px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); }
.rc-no::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .28); }
.rc-pro-feature-start th, .rc-pro-feature-start td { border-top-color: var(--line-strong) !important; }
.rc-plan-note { color: var(--faint); font-size: 14.5px; max-width: 820px; }

/* Guides. */
.krealize-home main > .rc-guides-links { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.rc-guides-links h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.rc-guides-links p { color: var(--soft); }
.rc-guides-links nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.rc-guides-links nav a { padding: 14px 16px; border-radius: var(--card-radius); background: var(--card); color: var(--text); font-size: 15px; font-weight: 500; transition: background-color .15s; }
.rc-guides-links nav a:hover { background: var(--card-hover); color: var(--text); }

/* Closing call to action: a glass panel over a picture. */
.rc-final-cta {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 36px;
    border-radius: var(--radius);
    isolation: isolate;
    overflow: hidden;
}
.rc-final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(18, 18, 22, .45), rgba(18, 18, 22, .55)), url("/radiant-canvas-assets/ground-greenhouse.webp") center / cover;
}
.rc-final-cta img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.rc-final-cta h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.rc-final-cta p { color: var(--soft); }
.krealize-home main > .rc-final-cta { padding: 40px; margin-bottom: 64px; }

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

.rc-footer {
    width: min(var(--page), 100% - 2 * var(--gutter));
    margin: 0 auto;
    padding: 36px 0 48px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 32px;
    align-items: start;
}
.rc-footer .rc-brand img { width: 32px; height: 32px; }
.rc-footer > div p { margin-top: 10px; color: var(--faint); font-size: 14px; }
.rc-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; }
.rc-footer nav a { color: var(--soft); font-size: 14px; }
.rc-footer nav a:hover, .rc-footer nav a[aria-current="page"] { color: var(--text); }
.rc-copyright { grid-column: 1 / -1; margin: 0; color: var(--faint); font-size: 13px; }

/* ---------- Document pages: a solid sheet on the backdrop ---------- */

.rc-document {
    width: min(980px, 100% - 2 * var(--margin));
    margin: 24px auto 40px;
    padding: clamp(24px, 5vw, 56px);
    border-radius: var(--radius);
    background: var(--sheet);
    box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .4);
}
.rc-document > * + * { margin-top: 40px; }
.rc-document-head { max-width: 760px; }
.rc-document-head h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.rc-document-head p:not(.rc-eyebrow) { color: var(--soft); font-size: 18px; }
.rc-document-head .rc-actions { margin-top: 24px; }
.rc-document .rc-final-cta { padding: 28px; }
.rc-document .rc-final-cta img { width: 72px; height: 72px; border-radius: 17px; }

.rc-breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; color: var(--faint); font-size: 13.5px; }
.rc-breadcrumbs a { color: var(--soft); }
.rc-breadcrumbs span:last-child { color: var(--faint); }
.rc-breadcrumbs + * { margin-top: 0 !important; }

/* Changes. */
.rc-release-list { display: grid; gap: 8px; }
.rc-release { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 24px; border-radius: var(--radius); background: var(--card); scroll-margin-top: 96px; }
.rc-release:target { box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .6); background: var(--selection); }
.rc-release-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rc-release-version { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--text); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.rc-release-version:hover { color: var(--text); background: rgba(255, 255, 255, .16); }
.rc-release-latest { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.rc-release h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.rc-release ul { display: grid; gap: 8px; color: var(--soft); font-size: 16px; }
.rc-release li::marker { color: var(--faint); }

/* Guides index. */
.rc-guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rc-guide-grid article { display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); background: var(--card); transition: background-color .15s; }
.rc-guide-grid article:hover { background: var(--card-hover); }
.rc-guide-grid .rc-eyebrow { color: var(--faint); font-size: 12px; margin-bottom: 8px; }
.rc-guide-grid h2 { font-size: 19px; letter-spacing: -.015em; line-height: 1.3; margin-bottom: 8px; }
.rc-guide-grid h2 a { color: var(--text); }
.rc-guide-grid p { color: var(--soft); font-size: 15px; margin-bottom: 16px; }
.rc-guide-grid .rc-guide-link { margin-top: auto; align-self: flex-start; min-height: 36px; padding: 0 14px; font-size: 14px; }

/* A guide. */
.rc-guide-image { margin: 40px 0 0; }
.rc-guide-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rc-guide-body section { padding: 20px; border-radius: var(--card-radius); background: var(--card); }
.rc-guide-body h2 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.rc-guide-body p { color: var(--soft); font-size: 15.5px; }
.rc-guide-prose, .rc-guide-technical, .rc-policy-body { max-width: 720px; }
.rc-guide-prose p, .rc-guide-technical p, .rc-guide-technical li, .rc-policy-body p, .rc-policy-body li { color: var(--soft); font-size: 17px; line-height: 1.65; }
.rc-guide-technical section + section { margin-top: 36px; }
.rc-guide-technical h2, .rc-policy-body h2, .rc-guide-models h2, .rc-related h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 14px; }
.rc-policy-body h2 { margin-top: 36px; }
.rc-guide-technical ol, .rc-guide-technical ul, .rc-policy-body ul { margin: 0 0 1em; display: grid; gap: 6px; }
.rc-guide-callout { padding: 16px 20px; border-radius: var(--card-radius); background: var(--selection); }
.rc-guide-callout em { font-style: normal; }
.rc-guide-takeaway { padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--card); }
.rc-guide-takeaway em { font-style: normal; color: var(--text); }
.rc-guide-faq .rc-eyebrow { margin-bottom: 8px; }
.rc-guide-faq h2 { margin-bottom: 20px; font-size: clamp(24px, 3vw, 32px); }
.rc-guide-support { margin-top: 16px; color: var(--soft); }
.rc-related { display: flex; flex-direction: column; gap: 6px; }
.rc-related a { padding: 12px 16px; border-radius: var(--card-radius); background: var(--card); color: var(--text); font-weight: 500; font-size: 15px; transition: background-color .15s; }
.rc-related a:hover { background: var(--card-hover); color: var(--text); }
.rc-related a::after { content: " →"; color: var(--faint); }

/* Support and privacy. */
.rc-contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--card); }
.rc-contact h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 10px; }
.rc-contact p { color: var(--soft); font-size: 15.5px; }
.rc-contact > a { padding: 12px 20px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; white-space: nowrap; }
.rc-contact > a:hover { background: var(--accent-hover); color: #fff; }
.rc-support-faq > h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 16px; }
.rc-note, .rc-policy-summary, .rc-press-note { padding: 20px 22px; border-radius: var(--radius); background: var(--selection); }
.rc-note strong, .rc-policy-summary strong, .rc-press-note strong { display: block; margin-bottom: 6px; }
.rc-note p, .rc-policy-summary p, .rc-press-note p { color: var(--soft); }

/* Press kit. */
.rc-press { width: min(1180px, 100% - 2 * var(--margin)); }
.rc-press-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.rc-press-hero h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 14px; }
.rc-press-hero p:not(.rc-eyebrow) { color: var(--soft); font-size: 18px; margin-bottom: 24px; }
.rc-press-hero figure { margin: 0; text-align: center; }
.rc-press-hero figure img { width: 180px; height: 180px; border-radius: 40px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); margin: 0 auto 10px; }
.rc-press-hero figcaption { color: var(--faint); font-size: 13px; }
.rc-press-jump { display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; max-width: 100%; padding: 4px; border-radius: 999px; box-shadow: var(--glass-edge); }
.rc-press-jump a { padding: 6px 14px; border-radius: 999px; color: var(--soft); font-size: 14px; font-weight: 500; }
.rc-press-jump a:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.rc-press-section { scroll-margin-top: 96px; }
.rc-press-section-head { margin-bottom: 20px; }
.rc-press-section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.rc-press-section-head p:not(.rc-eyebrow) { color: var(--soft); }
.rc-press-section-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.rc-press-section > .rc-asset-download { margin-top: 16px; }
.rc-fact-grid { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rc-fact-grid div { padding: 16px; border-radius: var(--card-radius); background: var(--card); }
.rc-fact-grid dt { color: var(--faint); font-size: 12.5px; margin-bottom: 4px; }
.rc-fact-grid dd { margin: 0; font-weight: 600; font-size: 15px; }
.rc-copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-copy-grid article { padding: 20px; border-radius: var(--card-radius); background: var(--card); }
.rc-copy-grid article > span { display: block; color: var(--faint); font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.rc-copy-grid p { color: var(--soft); font-size: 15.5px; }
.rc-copy-wide { grid-column: 1 / -1; }
.rc-press-gallery { display: grid; gap: 16px; }
.rc-press-screenshots { grid-template-columns: repeat(2, 1fr); }
.rc-sample-gallery { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rc-press-gallery a { color: var(--soft); font-size: 14px; }
.rc-press-gallery a:hover { color: var(--text); }
.rc-press-gallery a span { display: flex; gap: 8px; margin-top: 10px; }
.rc-press-gallery a b { color: var(--faint); font: 600 13px var(--font-mono); padding-top: 1px; }
.rc-icon-gallery { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px; border-radius: var(--radius); background: var(--card); }
.rc-icon-gallery > a { display: grid; justify-items: center; gap: 10px; color: var(--soft); font-size: 13.5px; }
.rc-icon-gallery > a img { width: 140px; height: 140px; border-radius: 31px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.rc-icon-gallery > div { display: grid; gap: 6px; }
.rc-icon-gallery > div p { color: var(--faint); font-size: 13px; margin: 0; }
.rc-icon-gallery > div a { font-size: 15px; font-weight: 500; }
.rc-press-links > div:last-child { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.rc-press-links > div:last-child a { padding: 16px; border-radius: var(--card-radius); background: var(--card); transition: background-color .15s; }
.rc-press-links > div:last-child a:hover { background: var(--card-hover); }
.rc-press-links span { display: block; color: var(--faint); font-size: 12.5px; }
.rc-press-links b { color: var(--text); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
    .krealize-home main > .rc-hero { grid-template-columns: 1fr; padding-top: calc(104px + 2 * var(--margin) + 40px); margin-top: calc(-1 * (104px + 2 * var(--margin))); }
    .rc-hero-copy { max-width: 620px; }
    .rc-stage { grid-template-columns: 1fr; }
    .rc-more, .rc-cards { grid-template-columns: repeat(2, 1fr); }
    .rc-speed, .krealize-home main > .rc-guides-links { grid-template-columns: 1fr; }
    .rc-fact-grid { grid-template-columns: repeat(2, 1fr); }
    .rc-sample-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 961px) and (max-width: 1100px) {
    .krealize-home main > .rc-hero { padding-top: calc(52px + 2 * var(--margin) + 48px); margin-top: calc(-1 * (52px + 2 * var(--margin))); }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .krealize-home main > section { padding: 56px 0; }
    .rc-hero-copy { padding: 20px; }
    .krealize-home main > .rc-facts { grid-template-columns: 1fr 1fr; }
    .rc-precision, .rc-guides-links nav, .rc-guide-grid, .rc-guide-body, .rc-copy-grid, .rc-press-screenshots, .rc-press-hero, .rc-contact {
        grid-template-columns: 1fr;
    }
    .rc-precision { gap: 20px; margin: 40px 0; }
    .rc-stage { padding: 6px; border-radius: 24px; }
    .rc-stage-panel { padding: 16px; }
    .rc-generation-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .rc-bars { padding: 16px; }
    .rc-bar-row { grid-template-columns: 1fr 96px; }
    .rc-bar-lines { grid-column: 1 / -1; grid-row: 2; }
    .rc-final-cta, .krealize-home main > .rc-final-cta { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
    .rc-final-cta img { width: 72px; height: 72px; border-radius: 17px; }
    .rc-footer { grid-template-columns: 1fr; }
    .rc-footer nav { justify-content: flex-start; }
    .rc-release { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
    .rc-release-meta { flex-direction: row; align-items: center; }
    .rc-document { margin-top: 16px; }
    .rc-press-hero figure { order: -1; text-align: left; }
    .rc-press-hero figure img { width: 112px; height: 112px; border-radius: 25px; margin: 0 0 8px; }
    .rc-sample-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .rc-more, .rc-cards, .rc-fact-grid { grid-template-columns: 1fr; }
    .rc-hero .rc-actions { flex-direction: column; align-items: stretch; }
    .rc-trial-link { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
