:root {
    --rc-primary: #f3912a;
    --rc-gradient: linear-gradient(90deg, #ff8d1c 0%, #ff5e17 54%, #ea5427 100%);
    --rc-dark: #30363a;
    --rc-text: #232323;
    --rc-medium: #909BA0;
    --rc-light: #E9E9E9;
    --rc-bg: #F5F5F5;
    --rc-marker: #ff5e17;
}

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

body {
    margin: 0;
    background: var(--rc-bg);
    color: var(--rc-text);
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

::selection { background: #ff5e17; color: #fff; }

:focus-visible {
    outline: 2px solid var(--rc-primary);
    outline-offset: 2px;
}

/* ---- Header ----
   Logo sizing/position and CTA styling mirror the main site's header
   (src/scss/header/_header.scss .header-container, src/scss/ui/_menu.scss
   .cta-link) at rest (non-scrolled) state. .rc__headerInner reproduces
   .header-container.container — Bootstrap's default container breakpoints
   (site imports ~bootstrap/scss/bootstrap with no $container-max-widths
   override) combined with .header-container's own padding rule — so this
   widget's header matches openimagination.co.uk at every width. */
.rc__header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--rc-dark);
}
.rc__headerInner {
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 576px) {
    .rc__headerInner { max-width: 540px; padding: 1.25rem; }
}
@media (min-width: 768px) {
    .rc__headerInner { max-width: 720px; }
}
@media (min-width: 992px) {
    .rc__headerInner { max-width: 960px; }
}
@media (min-width: 1200px) {
    .rc__headerInner { max-width: 1140px; }
}
@media (min-width: 1400px) {
    .rc__headerInner { max-width: 1320px; }
}
.rc__logoLink {
    display: inline-flex;
    line-height: 0;
}
.rc__logo {
    display: block;
    height: auto;
    width: 50vw;
    max-width: 145px;
    margin-right: 20px;
}
@media (min-width: 768px) {
    .rc__logo { max-width: 150px; }
}
@media (min-width: 1300px) {
    .rc__logo { max-width: 185px; }
}
.rc__headerCta {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: 1rem;
    text-decoration: none;
    background-image: var(--rc-gradient);
    padding: 0.5rem 1.5rem;
    border-radius: 1rem;
    white-space: nowrap;
    transition: filter .2s;
}
.rc__headerCta:hover { filter: saturate(.8); }

/* ---- Hero ---- */
.rc__hero {
    background: var(--rc-dark);
    padding: 84px 24px 108px;
    text-align: center;
}
.rc__heroInner { max-width: 760px; margin: 0 auto; }
.rc__eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .75px;
    text-transform: uppercase;
    color: var(--rc-primary);
    margin-bottom: 18px;
}
.rc__h1 {
    font-size: clamp(34px, 5.5vw, 62px);
    line-height: 1.02;
    font-weight: 100;
    color: #fff;
    margin: 0 0 22px;
    letter-spacing: 1.6px;
}
.rc__h1 strong { font-weight: 600; }
.rc__heroSub {
    font-size: 19px;
    font-weight: 200;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
    margin: 0 0 36px;
}
.rc__heroCta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--rc-gradient);
    color: #fff;
    font-weight: 400;
    font-size: 17px;
    padding: 15px 30px;
    border-radius: 20px;
    text-decoration: none;
    transition: filter .2s;
}
.rc__heroCta:hover { filter: saturate(.8); }

/* ---- Calc column ---- */
.rc__calc { max-width: 660px; margin: 0 auto; padding: 60px 20px 84px; }

.rc__card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 20px 5px rgba(0, 0, 0, .08);
    padding: 44px;
}

/* ---- Wizard ---- */
.rc__progressTrack {
    height: 5px;
    background: var(--rc-light);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}
.rc__progressFill {
    height: 100%;
    background: var(--rc-gradient);
    border-radius: 20px;
    transition: width .35s ease;
    width: 25%;
}
.rc__stepLabel {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .75px;
    text-transform: uppercase;
    color: var(--rc-primary);
    margin-bottom: 26px;
}

.rc__h2 {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 10px;
    color: var(--rc-dark);
    letter-spacing: .4px;
}
.rc__stepHelp {
    margin: 0 0 26px;
    font-size: 16px;
    font-weight: 200;
    line-height: 1.5;
    color: var(--rc-medium);
}

.rc__fieldLabel {
    font-size: 13px;
    font-weight: 600;
    color: var(--rc-dark);
    margin-bottom: 10px;
}
.rc__fieldLabel--spaced { margin-top: 22px; }

.rc__industryGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.rc__modelGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.rc__tile {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--rc-light);
    background: var(--rc-bg);
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    color: var(--rc-dark);
    text-align: center;
    font-family: 'Outfit', sans-serif;
    transition: border-color .2s, background .2s;
}
.rc__tile:hover { border-color: rgba(255, 94, 23, .4); }
.rc__tile.is-selected {
    border: 2px solid #ff5e17;
    background: rgba(255, 94, 23, .06);
}

.rc__inputWrap { position: relative; }
.rc__inputPrefix {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rc-medium);
    font-weight: 500;
    font-size: 20px;
    pointer-events: none;
}
.rc__input {
    width: 100%;
    box-sizing: border-box;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--rc-light);
    background: var(--rc-bg);
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--rc-text);
    outline: none;
}
.rc__input--prefixed { padding-left: 40px; }

.rc__metricToggle {
    display: inline-block;
    margin-top: 14px;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--rc-medium);
    text-decoration: underline;
    cursor: pointer;
}
.rc__metricToggle:hover { color: var(--rc-primary); }

.rc__navRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 34px;
}
.rc__backBtn {
    background: none;
    border: none;
    color: var(--rc-medium);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    padding: 10px 4px;
}
.rc__navSpacer { flex: 1; }
.rc__nextBtn {
    background: var(--rc-gradient);
    color: #fff;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 20px;
    cursor: pointer;
    transition: filter .2s;
}
.rc__nextBtn:hover { filter: saturate(.8); }
.rc__nextBtn:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: none;
}

/* ---- Results ---- */
.rc__resetRow { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.rc__resetBtn {
    background: none;
    border: none;
    color: var(--rc-medium);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.rc__banner {
    background: var(--rc-gradient);
    border-radius: 16px;
    padding: 26px 28px;
}
.rc__bannerHeadline {
    font-size: 27px;
    font-weight: 300;
    line-height: 1.3;
    color: #fff;
}
.rc__bannerHeadline strong { font-weight: 700; }
.rc__bannerSub {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, .9);
    line-height: 1.5;
}

.rc__divider { height: 1px; background: var(--rc-light); margin: 28px 0; }

.rc__sectionLabel {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .75px;
    color: var(--rc-primary);
    margin-bottom: 12px;
}
.rc__sectionLabel--onDark { margin-bottom: 10px; }

.rc__srOnly {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rc__chartCaption {
    margin: -4px 0 18px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--rc-medium);
}
.rc__chartCaption strong { font-weight: 600; color: var(--rc-dark); }

.rc__chartWrap { position: relative; }
.rc__chart { width: 100%; height: auto; display: block; overflow: visible; }
.rc__chartGrid { stroke: var(--rc-light); stroke-width: 1; }
.rc__chartTickLabel {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 500;
    fill: var(--rc-dark);
}
.rc__chartAxisLabel {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    fill: var(--rc-dark);
}
.rc__chartValueLabel {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    fill: var(--rc-text);
}
.rc__chartBarBase { fill: var(--rc-dark); }
.rc__chartBar { transition: opacity .15s; }
.rc__chartBar.is-hover, .rc__chartBarBase.is-hover { opacity: .82; }
.rc__chartCurrentLine {
    stroke: var(--rc-dark);
    stroke-width: 2;
}
.rc__chartLegendNote {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--rc-dark);
}
.rc__chartLegendNote[hidden] { display: none; }
.rc__chartLegendSwatch {
    display: inline-block;
    width: 16px;
    height: 2px;
    background: var(--rc-dark);
    flex-shrink: 0;
}
.rc__chartHit { cursor: pointer; }
.rc__chartHit:focus-visible {
    outline: 2px solid var(--rc-primary);
    outline-offset: 2px;
}
.rc__chartTooltip {
    position: absolute;
    pointer-events: none;
    background: var(--rc-dark);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 11px;
    border-radius: 8px;
    white-space: nowrap;
    transform: translate(-50%, calc(-100% - 10px));
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    z-index: 5;
}
.rc__chartTooltip strong { font-weight: 700; }

.rc__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rc__table th {
    text-align: left;
    padding: 8px 6px;
    font-size: 13px;
    color: var(--rc-medium);
    font-weight: 500;
}
.rc__table th:last-child { text-align: right; }
.rc__table td {
    padding: 12px 6px;
    border-bottom: 1px solid var(--rc-light);
    font-weight: 300;
}
.rc__table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--rc-text);
}
/* Higher specificity than ".rc__table" so this actually wins — a plain
   ".rc__srOnly" utility rule loses the width tie-break to ".rc__table"
   since both are single-class selectors and this one is declared later. */
.rc__table.rc__srOnly { width: 1px; height: 1px; }

.rc__bigFigure {
    font-size: 40px;
    font-weight: 600;
    color: var(--rc-text);
    margin-top: 8px;
}
.rc__figureNote {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 300;
    color: var(--rc-text);
    line-height: 1.5;
}

.rc__planRow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.rc__planName { font-size: 20px; font-weight: 600; color: var(--rc-dark); }
.rc__planCost { font-size: 15px; font-weight: 600; color: var(--rc-text); }
.rc__planNote {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--rc-dark);
}
.rc__benchRow { margin-bottom: 18px; }
.rc__benchLabel {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 7px;
    color: var(--rc-dark);
    font-weight: 300;
}
.rc__benchLabel strong { color: var(--rc-text); font-weight: 600; }
.rc__benchLabel .rc__benchTypical { color: var(--rc-medium); font-weight: 300; }
.rc__benchBar {
    position: relative;
    height: 12px;
    border-radius: 20px;
    background: var(--rc-light);
    overflow: hidden;
}
.rc__benchFill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 20px;
    background: var(--rc-dark);
    width: 0;
    transition: width .15s linear;
}
.rc__benchMark {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    background: var(--rc-marker);
    left: 0;
}
.rc__benchNote {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--rc-dark);
    margin-top: 6px;
}

.rc__methodPanel {
    padding: 18px;
    border-radius: 14px;
    background: var(--rc-bg);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--rc-dark);
}

.rc__quote {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 21px;
    line-height: 1.5;
    color: var(--rc-medium);
    margin: 28px 0 8px;
    padding: 0 0 0 24px;
    border-left: 3px solid var(--rc-primary);
}
.rc__quoteAttr {
    padding-left: 24px;
    font-size: 13px;
    color: var(--rc-dark);
    font-weight: 600;
}

/* ---- Email capture ---- */
.rc__emailBlock {
    background: var(--rc-dark);
    border-radius: 20px;
    padding: 40px;
    margin-top: 16px;
    text-align: center;
}
.rc__emailHeadline {
    font-size: 26px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
}
.rc__emailSub {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, .72);
    margin: 0 0 24px;
}
.rc__emailForm {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.rc__emailInput {
    flex: 1;
    min-width: 200px;
    box-sizing: border-box;
    padding: 15px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 15px;
    outline: none;
}
.rc__emailInput::placeholder { color: rgba(255, 255, 255, .45); }
.rc__emailSubmit {
    background: var(--rc-gradient);
    color: #fff;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 15px;
    padding: 15px 26px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .2s;
}
.rc__emailSubmit:hover { filter: saturate(.8); }
.rc__contactLink {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, .6);
    text-decoration: underline;
}
.rc__emailError {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    color: #ffb199;
}
#rc_emailPost .rc__emailHeadline { font-size: 22px; font-weight: 500; }

/* ---- Footer ---- */
.rc__footer {
    text-align: center;
    padding: 0 24px 48px;
    font-size: 12px;
    font-weight: 300;
    color: var(--rc-medium);
}

/* ---- Mobile ---- */
@media (max-width: 560px) {
    .rc__header { padding: 12px 18px; }
    .rc__hero { padding: 56px 20px 72px; }
    .rc__heroSub { font-size: 16px; }
    .rc__card { padding: 26px; }
    .rc__calc { padding: 36px 14px 60px; }
    .rc__industryGrid { grid-template-columns: 1fr; }
    .rc__modelGrid { grid-template-columns: 1fr; }
    .rc__bigFigure { font-size: 32px; }
    .rc__emailBlock { padding: 28px 22px; }
    .rc__bannerHeadline { font-size: 22px; }
}
