/* ==========================================================================
   Home
   ========================================================================== */

.fc-section { padding-top: clamp(96px, 12vw, 160px); }
.fc-note-small { font-size: 13.5px; color: var(--fc-muted); margin-top: 16px; max-width: 80ch; }
.fc-note-small code, .fc-sub code { color: var(--fc-tk-ty); }

/* --- Hero ----------------------------------------------------------------- */
.fc-hero { padding-top: clamp(40px, 6vw, 72px); }
.fc-hero__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(28px, 4vw, 64px); align-items: center; }
.fc-hero__side { display: grid; gap: 20px; }
.fc-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.fc-install { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--fc-mono); font-size: 13.5px; color: var(--fc-text-2); overflow-wrap: anywhere; }
.fc-install b { color: var(--fc-muted); font-weight: 400; }
.fc-install button { background: none; border: 0; color: var(--fc-muted); cursor: pointer; padding: 6px; border-radius: 6px; display: grid; }
.fc-install button:hover { color: var(--fc-text); background: var(--fc-bg-3); }

.fc-shell .fc-license {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 8px 14px 8px 12px;
    border: 1px solid var(--fc-line-2);
    border-radius: 999px;
    color: var(--fc-text-2);
    text-decoration: none;
    font-size: 14px;
    transition: border-color .2s, background .2s;
}

.fc-shell .fc-license:hover { border-color: var(--fc-violet-2); background: var(--fc-bg-2); }
.fc-license svg { color: var(--fc-violet-2); }
.fc-license b { color: var(--fc-text); font-weight: 700; }

/* --- Hero stage ----------------------------------------------------------- */
.fc-hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(20px, 2.4vw, 32px);
    align-items: start;
    margin-top: clamp(36px, 5vw, 56px);
}

.fc-hero-editor .fc-code { height: clamp(320px, 52vh, 460px); overflow-y: auto; scrollbar-width: thin; }

.fc-result {
    overflow-wrap: anywhere;
    margin-top: 16px;
    font-family: var(--fc-mono);
    font-size: 12px;
    line-height: 1.6;
    color: #1B1D2E;
    background: #EAF8F1;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.fc-result svg { color: #16804F; margin-top: 1px; }
.fc-result.is-err { background: #FDEDEA; }
.fc-result.is-err svg { color: #C0301A; }

.fc-hero-controls { display: flex; flex-wrap: wrap; gap: 8px; }

.fc-ctl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 0;
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}

.fc-ctl:hover { background: rgba(255, 255, 255, .22); }
.fc-ctl svg { width: 15px; height: 15px; }

@keyframes fc-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fc-field-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* Phase rail: the sequence the hero plays, named. Numbers are not needed: the order is the text. */
.fc-phases { list-style: none; padding: 0; margin: clamp(56px, 7vw, 88px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fc-phase { border-top: 2px solid var(--fc-line); padding-top: 14px; transition: border-color .4s var(--fc-ease); }
.fc-phase b { display: block; font-family: var(--fc-display); font-weight: 600; font-size: 16px; letter-spacing: -.02em; color: var(--fc-muted); transition: color .4s; }
.fc-phase span { font-size: 14px; color: var(--fc-muted); }
.fc-phase code { font-size: .9em; }
.fc-phase.is-on { border-top-color: var(--fc-yellow); }
.fc-phase.is-on b { color: var(--fc-text); }
.fc-phase.is-done { border-top-color: var(--fc-violet-2); }
.fc-phase.is-done b { color: var(--fc-text-2); }

/* --- Compression ---------------------------------------------------------- */
.fc-compress { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); margin-top: 48px; align-items: stretch; }
.fc-listing { border: 1px solid var(--fc-line); border-radius: 18px; background: var(--fc-panel); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.fc-listing__head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 18px 20px 14px; border-bottom: 1px solid var(--fc-line); }
.fc-listing__head span:first-child { color: var(--fc-text-2); font-size: 14px; }
.fc-listing__count { font-family: var(--fc-display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.05em; line-height: 1; }
.fc-listing--hand .fc-listing__count { color: var(--fc-coral); }
.fc-listing--fc .fc-listing__count { color: var(--fc-mint); }
.fc-listing--hand .fc-code { font-size: 9.5px; line-height: 1.5; opacity: .75; padding: 14px 0; }
.fc-listing--hand .fc-code .cl::before { width: 2.8em; padding-right: 1em; }
.fc-listing--hand .fc-code .cl { padding-left: calc(3.8em + (var(--ind, 0) + 4) * 1ch); text-indent: calc(-3.8em - (var(--ind, 0) + 4) * 1ch); }
.fc-listing--fc .fc-code { font-size: clamp(12px, 1.1vw, 14px); }

/* --- Gallery -------------------------------------------------------------- */
.fc-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }

.fc-shell .fc-tile {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 300px;
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--fc-bg-2);
    border: 1px solid var(--fc-line);
    text-decoration: none;
    color: var(--fc-text);
    transition: transform .5s var(--fc-ease), border-color .3s;
}

.fc-shell .fc-tile:hover, .fc-shell .fc-tile:focus-visible { transform: translateY(-4px); border-color: var(--fc-line-2); }
.fc-tile--a { grid-column: span 2; grid-row: span 2; }
.fc-tile--g { grid-column: span 2; }
.fc-tile__stage { position: relative; padding: 26px; display: grid; place-items: center; background: var(--tone, var(--fc-violet-slab)); overflow: hidden; }
.fc-tile__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 16px 20px; }
.fc-tile__meta b { white-space: nowrap; }
.fc-tile__meta b { display: flex; align-items: center; gap: 8px; font-family: var(--fc-display); font-weight: 600; font-size: 16.5px; letter-spacing: -.02em; }
.fc-tile__meta code { font-size: 12px; color: var(--fc-violet-ink); background: var(--fc-bg-3); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }

/* Preview cards mimic MudBlazor's outlined fields: static pictures of the real demos. */
.fc-mini { width: 100%; max-width: 360px; background: #F7F7FB; color: #1B1D2E; border-radius: 14px; padding: 16px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); font-size: 13px; display: grid; gap: 12px; }
.fc-mini--wide { max-width: 520px; }
.fc-tile--a .fc-mini { max-width: 440px; padding: 22px; font-size: 14px; }
.fc-mf { position: relative; }
.fc-mf__box { display: flex; align-items: center; height: 42px; border: 1px solid #C5C7D8; border-radius: 6px; background: #fff; padding: 10px 14px 0; font-size: 14px; color: #1B1D2E; }
.fc-tile--a .fc-mf__box { height: 48px; font-size: 15px; }
.fc-mf__box--dots { letter-spacing: .2em; }
.fc-mf__label { position: absolute; left: 14px; top: 4px; font-size: 10.5px; font-weight: 500; color: #5C6080; }
.fc-mf.is-flash .fc-mf__box { animation: fc-flash 1s var(--fc-ease); }
@keyframes fc-flash { 0% { box-shadow: 0 0 0 3px rgba(255, 209, 102, .9); border-color: #D9A21A; } 100% { box-shadow: none; } }
.fc-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #DADBE8; padding-top: 12px; }
.fc-total span { color: #5C6080; font-size: 13px; }
.fc-total b { font-family: var(--fc-display); font-size: 28px; letter-spacing: -.04em; color: var(--fc-violet); }

.fc-steps { display: flex; align-items: center; gap: 8px; }
.fc-steps__s { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #4F5372; white-space: nowrap; }
.fc-steps__s i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E3E4EF; color: #4F5372; font-style: normal; font-weight: 600; font-size: 12px; transition: background .4s var(--fc-ease), color .4s; }
.fc-steps__s em { font-style: normal; }
.fc-steps__s:not(.is-on) em { display: none; }
.fc-steps__s.is-on i { background: var(--fc-violet); color: #fff; }
.fc-steps__s.is-on { color: #1B1D2E; font-weight: 600; }
.fc-steps__bar { flex: 1; height: 2px; background: #E3E4EF; position: relative; min-width: 12px; }
.fc-steps__bar::after { content: ''; position: absolute; inset: 0; background: var(--fc-violet); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .6s var(--fc-ease); }

.fc-drop { border: 1.5px dashed #A9ACC6; border-radius: 10px; padding: 16px; display: grid; place-items: center; gap: 4px; color: #5C6080; text-align: center; }
.fc-drop svg { width: 26px; height: 26px; color: var(--fc-violet); }
.fc-drop b { color: var(--fc-violet); }
.fc-fchip { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid #DADBE8; border-radius: 10px; }
.fc-fchip svg { width: 18px; height: 18px; color: #D9391F; }
.fc-fchip small { color: #5C6080; font-family: var(--fc-mono); font-size: 11px; }
.fc-prog { grid-column: 1 / -1; height: 4px; background: #E3E4EF; border-radius: 2px; overflow: hidden; }
.fc-prog i { display: block; height: 100%; background: #1E9E68; transform-origin: left; transition: transform 1.4s var(--fc-ease); }

.fc-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.fc-meter i { height: 5px; border-radius: 3px; background: #E3E4EF; transition: background .35s; }
.fc-meter[data-s="1"] i:nth-child(-n+1) { background: #D9391F; }
.fc-meter[data-s="2"] i:nth-child(-n+2) { background: #E28C1A; }
.fc-meter[data-s="3"] i:nth-child(-n+3) { background: #C5B41C; }
.fc-meter[data-s="4"] i:nth-child(-n+4) { background: #1E9E68; }
.fc-meter-l { display: flex; justify-content: space-between; font-size: 12px; color: #5C6080; margin-top: -6px; }

.fc-mtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fc-mtable th { text-align: left; font-weight: 600; color: #5C6080; font-size: 11px; padding: 6px 8px; border-bottom: 1px solid #DADBE8; }
.fc-mtable td { padding: 8px; border-bottom: 1px solid #ECEDF4; }
.fc-mtable td:last-child, .fc-mtable th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.fc-mtable tr.is-new td { animation: fc-rowin .6s var(--fc-ease); }
@keyframes fc-rowin { from { opacity: 0; transform: translateY(-6px); background: #FFF6DB; } }
.fc-addrow { display: inline-flex; align-items: center; gap: 6px; color: var(--fc-violet); font-weight: 600; font-size: 12.5px; }
.fc-addrow svg { width: 14px; height: 14px; }

.fc-secrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.fc-secrow svg { width: 15px; height: 15px; color: #1E9E68; }
.fc-cipher { font-family: var(--fc-mono); font-size: 11px; color: #5C6080; word-break: break-all; margin-top: -4px; }
.fc-swatch { width: 18px; height: 18px; border-radius: 5px; margin-right: 10px; display: inline-block; }
.fc-swatches { display: flex; gap: 8px; }
.fc-swatches i { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.fc-swatches i:first-child { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1B1D2E; }
.fc-stars { display: flex; align-items: center; gap: 2px; color: #E28C1A; }
.fc-stars span:first-child { color: #5C6080; font-size: 12px; margin-right: 8px; }
.fc-stars svg { width: 20px; height: 20px; fill: currentColor; }
.fc-stars .is-off { color: #C5C7D8; display: inline-flex; }
.fc-grp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fc-grp h4 { margin: 0 0 8px; font-size: 11.5px; color: #5C6080; font-weight: 600; }

/* --- Every demo, by level ------------------------------------------------- */
.fc-all { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.fc-all h3 { font-family: var(--fc-display); font-weight: 600; font-size: 15px; letter-spacing: -.02em; margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.fc-all h3 small { font-family: var(--fc-body); font-weight: 500; color: var(--fc-muted); font-size: 13px; }
.fc-all ul { list-style: none; margin: 0; padding: 0; }
.fc-shell .fc-all a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--fc-line); color: var(--fc-text-2); text-decoration: none; font-size: 15px; }
.fc-shell .fc-all a:hover { color: var(--fc-text); }
.fc-all a > span:first-child { display: flex; align-items: center; gap: 8px; }
.fc-all__min { color: var(--fc-muted); font-size: 12.5px; }

/* --- Getting started ------------------------------------------------------ */
.fc-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.fc-start__step:first-child { grid-column: 1 / -1; }
.fc-start__step { border: 1px solid var(--fc-line); background: var(--fc-panel); border-radius: 18px; padding: 20px; min-width: 0; }
.fc-start__step h3 { margin: 0 0 14px; font-size: 16px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.fc-start__step h3 > span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--fc-bg-3); color: var(--fc-yellow); font-family: var(--fc-mono); font-size: 13px; }
.fc-start__step h3 .fc-copy { margin-left: auto; border: 1px solid var(--fc-line); }
.fc-start__step .fc-code { padding: 12px 0; font-size: 12.5px; background: var(--fc-bg-2); border-radius: 10px; }
.fc-start__step .fc-code .cl { padding-right: 14px; padding-left: calc(14px + (var(--ind, 0) + 4) * 1ch); }

.fc-cta {
    margin-top: clamp(96px, 12vw, 160px);
    background: var(--fc-violet-slab);
    border-radius: 28px;
    padding: clamp(40px, 6vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: end;
}

.fc-cta .fc-h2 { color: #fff; max-width: 16ch; }
.fc-cta p { color: var(--fc-on-violet-2); margin: 16px 0 0; max-width: 48ch; font-size: 1.1rem; }
.fc-shell .fc-cta p a { color: #fff; font-weight: 600; }
.fc-shell .fc-cta .fc-btn--primary { background: #fff; color: var(--fc-violet-onwhite); box-shadow: none; }
.fc-shell .fc-cta .fc-btn--primary:hover { background: var(--fc-on-violet-2); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) { .fc-start { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 1000px) {
    .fc-hero__top, .fc-hero-stage, .fc-compress { grid-template-columns: minmax(0, 1fr); }
    .fc-hero-right { margin: 0 calc(var(--fc-gut) * -1); border-radius: 0; padding: 24px var(--fc-gut); }
    .fc-gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .fc-tile--a, .fc-tile--g { grid-column: span 2; grid-row: auto; }
    .fc-all { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
    .fc-phases { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .fc-gallery { grid-template-columns: minmax(0, 1fr); }
    .fc-tile--a, .fc-tile--g { grid-column: auto; }
    .fc-cta { grid-template-columns: minmax(0, 1fr); }
    .fc-listing--hand .fc-code { max-height: 360px; overflow: hidden; }
}
