/* ============================================================================
   workflow.css — /workflow
   ----------------------------------------------------------------------------
   BASELINE ONLY. This is deliberately plain: enough structure, rhythm, and
   hierarchy that the page reads correctly and can be reviewed for content,
   with nothing decorative that would have to be undone later.

   Conventions borrowed from about_us.css so a restyle can converge on one
   system: .section-id / .section-body two-column split, .section-eyebrow,
   .lead, .btn-primary, and the scroll-driven stage rail.
   ========================================================================== */

/* ---------------------------------------------------------------- Base ---- */

body {
    background: var(--background-color);
    color: var(--font-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wf-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px 120px;
}

.wf-main h1,
.wf-main h2,
.wf-main h3,
.wf-main h4 {
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.wf-main p {
    color: rgba(241, 241, 241, 0.72);
    line-height: 1.7;
    font-size: 1rem;
}

.wf-main a {
    color: var(--rizzgen-accent-purple);
    text-decoration: none;
}

.wf-main a:hover {
    text-decoration: underline;
}

.wf-main code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88em;
    background: var(--input-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px 7px;
    color: #fff;
}

.accent {
    color: var(--rizzgen-accent-purple);
}

.section-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--rizzgen-accent-purple);
    margin-bottom: 18px;
}

.lead {
    font-size: 1.08rem;
    color: rgba(241, 241, 241, 0.6);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 14px 28px;
    border-radius: 12px;
    transition: transform .2s ease, background .2s ease;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: transparent;
    color: #fff;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 14px 28px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color .2s ease;
}

.btn-secondary:hover {
    border-color: var(--border-hover-color);
    text-decoration: none;
}

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

.wf-hero {
    text-align: center;
    /* This hero is taller than its min-height on phones, so centering never
       kicks in - the top offset the about-us hero gets from centering has to
       come from padding here instead. */
    padding: clamp(120px, 26vh, 220px) 0 0;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* svh keeps this stable while mobile browser chrome shows/hides. */
    min-height: 58vh;
    min-height: 58svh;
}

@media (min-width: 768px) {
    .wf-hero {
        min-height: 70vh;
        margin-bottom: 64px;
        /* Matches where the about-us hero lands: that hero is short enough that
           min-height + centering pushes it down. This one is taller than 70vh,
           so the same offset has to come from padding. */
        padding-top: clamp(140px, 30vh, 300px);
    }
}

.wf-hero h1 {
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 24px;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.wf-hero-lead {
    font-size: 1.2rem !important;
    color: var(--font-color-50, rgba(183, 183, 183, 0.5)) !important;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.5 !important;
}

.wf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 36px 0 28px;
}

.wf-hero .wf-hero-actions {
    justify-content: center;
}

.wf-hero-note {
    font-size: 0.9rem !important;
    color: rgba(241, 241, 241, 0.45) !important;
    max-width: 620px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .wf-hero .wf-hero-actions {
        margin: 28px 0 22px;
    }
}

/* -------------------------------------------------------------- Videos ---- */

.wf-hero-video-section {
    margin: 40px 0 100px;
}

.wf-video-container {
    margin: 36px 0 0;
}

.wf-video-container--wide {
    margin: 0;
}

.wf-video {
    width: 100%;
    display: block;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--rizzgen-dark);
}

.wf-video-caption {
    font-size: 0.85rem !important;
    color: rgba(241, 241, 241, 0.42) !important;
    margin-top: 12px;
}

/* Placeholder for video slots not yet captured. Remove .wf-video-container--todo
   and the .wf-video-placeholder markup once the real asset is in. */
.wf-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: 1px dashed var(--border-hover-color);
    background: rgba(255, 255, 255, 0.015);
    color: rgba(241, 241, 241, 0.35);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    text-align: center;
    padding: 24px;
}

.wf-video-placeholder i {
    font-size: 1.6rem;
    opacity: 0.5;
}

/* ------------------------------------------------------- Section layout ---- */

.wf-section,
.wf-glance {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 56px;
    padding: 90px 0;
    border-top: 1px solid var(--border-color);
}

.section-id-inner {
    position: sticky;
    top: 120px;
}

.section-id h2 {
    font-size: 1.75rem;
    margin: 0 0 12px;
}

.section-body > h3 {
    font-size: 1.05rem;
    margin: 36px 0 10px;
    color: rgba(255, 255, 255, 0.9);
}

.section-body > p + p {
    margin-top: 16px;
}

/* --------------------------------------------------------- At a glance ---- */

.wf-glance-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.wf-glance-list li {
    border-bottom: 1px solid var(--border-color);
}

.wf-glance-list a {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: baseline;
    gap: 16px;
    padding: 18px 4px;
    color: inherit;
    text-decoration: none;
    transition: background .18s ease, padding-left .18s ease;
}

.wf-glance-list a:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 12px;
    text-decoration: none;
}

.wf-glance-name {
    color: #fff;
    font-weight: 500;
    font-size: 0.98rem;
}

.wf-glance-desc {
    display: block;
    font-size: 0.86rem;
    color: rgba(241, 241, 241, 0.45);
    margin-top: 4px;
}

.wf-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--rizzgen-accent-purple);
    letter-spacing: 0.08em;
}

.wf-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.wf-tag--free {
    color: #6ee7a8;
    border-color: rgba(110, 231, 168, 0.28);
}

.wf-tag--credits {
    color: #d8b4fe;
    border-color: rgba(216, 180, 254, 0.28);
}

.wf-tag--mixed {
    color: rgba(241, 241, 241, 0.55);
}

/* ------------------------------------------------- Architecture / entry ---- */

.wf-pullquote {
    font-size: 1.35rem !important;
    line-height: 1.5 !important;
    color: #fff !important;
    font-weight: 300;
    margin: 0 0 28px;
    padding-left: 22px;
    border-left: 2px solid var(--rizzgen-accent-purple);
}

.wf-prompt-echo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem !important;
    color: rgba(241, 241, 241, 0.8) !important;
    background: var(--input-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 18px 0;
}

/* ------------------------------------------------------------ The rail ---- */

.wf-rail {
    position: relative;
    padding: 40px 0 0 0;
}

.wf-rail-line {
    position: absolute;
    left: 7px;
    top: 60px;
    bottom: 60px;
    width: 1px;
    background: var(--border-color);
}

.wf-rail-fill {
    width: 100%;
    height: 0;
    background: var(--rizzgen-accent-purple);
    transition: height .1s linear;
}

.wf-stage {
    position: relative;
    padding: 70px 0 70px 56px;
}

.wf-stage-dot {
    position: absolute;
    left: 0;
    top: 84px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid var(--border-hover-color);
    background: var(--background-color);
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.wf-stage.is-past .wf-stage-dot {
    background: var(--rizzgen-accent-purple);
    border-color: var(--rizzgen-accent-purple);
}

.wf-stage.is-current .wf-stage-dot {
    border-color: var(--rizzgen-accent-purple);
    transform: scale(1.35);
    box-shadow: 0 0 0 5px rgba(154, 67, 255, 0.12);
}

.wf-stage-head {
    margin-bottom: 28px;
    max-width: 720px;
}

.wf-stage-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 12px 0 14px;
}

.wf-stage-head .wf-num {
    text-transform: uppercase;
}

.wf-stage-body {
    max-width: 720px;
}

.wf-stage-body h3 {
    font-size: 1rem;
    margin: 32px 0 10px;
    color: rgba(255, 255, 255, 0.92);
}

.wf-stage-body p + p {
    margin-top: 16px;
}

.wf-emphasis {
    color: rgba(241, 241, 241, 0.92) !important;
    font-size: 1.02rem !important;
    border-left: 2px solid var(--rizzgen-accent-purple);
    padding-left: 20px;
    margin-top: 28px !important;
}

.wf-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.wf-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: rgba(241, 241, 241, 0.72);
    line-height: 1.65;
    font-size: 0.97rem;
}

.wf-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 1px;
    background: var(--rizzgen-accent-purple);
}

.wf-list--context li strong {
    color: #fff;
    font-weight: 600;
}

.wf-examples {
    list-style: none;
    margin: 18px 0 24px;
    padding: 0;
}

.wf-examples li {
    padding: 16px 20px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.012);
    color: rgba(241, 241, 241, 0.78);
    font-size: 0.95rem;
    line-height: 1.6;
}

.wf-example-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rizzgen-accent-purple);
    margin-bottom: 8px;
}

/* ------------------------------------------------------------- The fork --- */

.wf-fork {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 8px 0 0;
}

.wf-fork-path {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.012);
}

.wf-fork-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--rizzgen-accent-purple);
}

.wf-fork-path h3 {
    font-size: 1.15rem;
    margin: 10px 0 14px;
}

.wf-fork-for {
    font-size: 0.88rem !important;
    color: rgba(241, 241, 241, 0.5) !important;
    margin-top: 16px !important;
}

.wf-fork-for strong,
.wf-way-for strong {
    color: rgba(255, 255, 255, 0.8);
}

/* -------------------------------------------------------- Six ways grid --- */

.wf-ways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.wf-way {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.012);
    transition: border-color .2s ease;
}

.wf-way:hover {
    border-color: var(--border-hover-color);
}

.wf-way h3 {
    font-size: 1.08rem;
    margin: 12px 0 12px;
}

.wf-way p {
    font-size: 0.93rem;
}

.wf-way-for {
    font-size: 0.86rem !important;
    color: rgba(241, 241, 241, 0.5) !important;
    margin-top: 16px !important;
}

/* -------------------------------------------------------------- Costing --- */

.wf-cost-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.wf-cost-col {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 26px;
}

.wf-cost-col h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.wf-cost-col--free {
    border-color: rgba(110, 231, 168, 0.22);
}

.wf-cost-col--free h3 {
    color: #6ee7a8;
}

.wf-cost-col--credits {
    border-color: rgba(216, 180, 254, 0.22);
}

.wf-cost-col--credits h3 {
    color: #d8b4fe;
}

.wf-cost-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid var(--border-color);
}

.wf-cost-note h4 {
    font-size: 0.95rem;
    margin: 0 0 10px;
}

.wf-cost-note p {
    font-size: 0.92rem;
}

.wf-cost-cta {
    margin-top: 44px;
}

/* --------------------------------------------------------------- Table ---- */

.wf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.wf-table th,
.wf-table td {
    text-align: left;
    padding: 16px 18px 16px 0;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.6;
}

.wf-table th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(241, 241, 241, 0.45);
    font-weight: 400;
    padding-bottom: 12px;
}

.wf-table td:first-child {
    color: #fff;
    font-weight: 500;
    width: 20%;
}

.wf-table td:nth-child(2) {
    color: rgba(241, 241, 241, 0.45);
}

.wf-table td:last-child {
    color: rgba(241, 241, 241, 0.85);
}

.wf-contrast-note {
    margin-top: 28px;
    font-size: 0.9rem !important;
    color: rgba(241, 241, 241, 0.5) !important;
}

/* ----------------------------------------------------------------- FAQ ---- */

.wf-faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 22px 0;
}

.wf-faq-item summary {
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.wf-faq-item summary::-webkit-details-marker {
    display: none;
}

.wf-faq-item summary::after {
    content: "+";
    color: var(--rizzgen-accent-purple);
    font-weight: 400;
    flex-shrink: 0;
}

.wf-faq-item[open] summary::after {
    content: "\2212";
}

.wf-faq-item p {
    margin-top: 14px;
    font-size: 0.95rem;
}

/* ----------------------------------------------------------- Final CTA ---- */

.wf-final-cta {
    padding: 110px 0 40px;
    border-top: 1px solid var(--border-color);
    max-width: 760px;
}

.wf-final-cta h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin: 0 0 20px;
}

/* -------------------------------------------------------------- Mobile ---- */

@media (max-width: 900px) {

    .wf-section,
    .wf-glance {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 64px 0;
    }

    .section-id-inner {
        position: static;
    }

    .wf-main {
        padding: 0 20px 80px;
    }

    .wf-stage {
        padding: 48px 0 48px 34px;
    }

    .wf-rail-line {
        left: 5px;
    }

    .wf-stage-dot {
        width: 11px;
        height: 11px;
        top: 62px;
    }

    .wf-glance-list a {
        grid-template-columns: 40px 1fr;
        gap: 10px;
    }

    .wf-glance-list .wf-tag {
        display: none;
    }

    .wf-table {
        font-size: 0.85rem;
    }

    .wf-table td:first-child {
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {

    .wf-rail-fill,
    .wf-stage-dot,
    .btn-primary,
    .wf-glance-list a {
        transition: none;
    }
}
