/* Explain: Styles for interactive machine guide elements. */
/* JoyCaps — component classes */
/* Buttons */
.btn-primary,
.btn-ghost,
.btn-light,
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn-primary {
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 14px 26px -18px rgba(57, 51, 47, .85);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
}

.btn-ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--surface-color);
}

.btn-light {
    border: 1px solid #fff;
    background: #fff;
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, .45);
    background: transparent;
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .14);
    border-color: #fff;
}

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-light:focus-visible,
.btn-outline-light:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* Surfaces */
.surface-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    box-shadow: var(--shadow-card);
    transition: transform .35s ease, box-shadow .35s ease;
}

.surface-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.panel {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    box-shadow: var(--shadow-card);
}

.panel-pad {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .panel-pad { padding: 2rem; }
}

.media-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--accent-tint);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.surface-card:hover .media-frame img {
    transform: scale(1.04);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--primary-color);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.price-tag {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
}

.surface-card--popular {
    border-color: var(--accent-color);
    box-shadow: 0 22px 48px -28px rgba(205, 154, 154, .85), 0 0 0 2px rgba(205, 154, 154, .35);
}

.surface-card--popular:hover {
    box-shadow: 0 30px 60px -30px rgba(205, 154, 154, .95), 0 0 0 2px rgba(205, 154, 154, .5);
}

.popular-tag {
    position: absolute;
    top: .85rem;
    left: .85rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 12px 26px -12px rgba(58, 44, 37, .7);
}

.popular-tag i {
    font-size: .68rem;
}

.dot {
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: .5rem;
    border-radius: 999px;
    background: var(--accent-color);
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.feature-list i {
    margin-top: .3rem;
    font-size: .7rem;
    color: var(--accent-color);
}

/* ---------- Calculator ---------- */
.step-number {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.calc-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: .6rem 1rem;
    align-items: center;
    padding: .8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    transition: border-color .25s ease, box-shadow .25s ease;
    scroll-margin-top: 6rem;
}

.calc-item .stepper {
    grid-column: 1 / -1;
    justify-self: end;
}

@media (min-width: 480px) {
    .calc-item { grid-template-columns: 64px minmax(0, 1fr) auto; }
    .calc-item .stepper { grid-column: auto; }
}

.calc-item.is-selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(205, 154, 154, .28);
}

.calc-thumb {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--accent-tint);
}

.calc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stepper {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-color);
}

.stepper button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color .2s ease;
}

.stepper button:hover {
    background: var(--surface-alt);
}

.stepper input {
    width: 46px;
    height: 44px;
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-color);
    -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.summary-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    box-shadow: var(--shadow-card);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: .9rem;
}

.summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.summary-total strong {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
}

@media (min-width: 1024px) {
    .summary-sticky { position: sticky; top: 96px; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

.gallery-btn {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--accent-tint);
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}

.gallery-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.gallery-btn:hover img {
    transform: scale(1.05);
}

.gallery-btn::after {
    content: "\f00e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: .6rem;
    bottom: .6rem;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--primary-color);
    font-size: .7rem;
    opacity: 0;
    transition: opacity .25s ease;
}

.gallery-btn:hover::after {
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(24, 25, 28, .9);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-stage {
    position: relative;
    display: grid;
    place-items: center;
    max-width: min(94vw, 1000px);
    max-height: 84vh;
}

.lightbox img {
    max-width: 100%;
    max-height: 84vh;
    border-radius: 14px;
    object-fit: contain;
    transition: opacity .25s ease;
}

.lightbox img.is-loading {
    opacity: 0;
}

.lightbox-loader {
    position: absolute;
    display: none;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 999px;
    animation: joycaps-spin .8s linear infinite;
}

.lightbox-loader.is-active {
    display: block;
}

@keyframes joycaps-spin {
    to { transform: rotate(360deg); }
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, .3);
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: .5rem; top: 50%; transform: translateY(-50%); }

@media (min-width: 768px) {
    .lightbox-close { top: 1.5rem; right: 1.5rem; }
    .lightbox-prev { left: 1.5rem; }
    .lightbox-next { right: 1.5rem; }
}

/* ---------- Forms ---------- */
.field-label {
    display: block;
    margin-bottom: .4rem;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.field-input {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-color);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text-color);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(205, 154, 154, .30);
}

.field-input::placeholder {
    color: #B09A8C;
}

/* ---------- Misc ---------- */
.info-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.info-row i {
    flex: none;
    margin-top: .25rem;
    width: 18px;
    text-align: center;
    color: var(--accent-color);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: .9rem;
}

.spec-row span:first-child {
    color: var(--text-muted);
}

.spec-row span:last-child {
    font-weight: 500;
    text-align: right;
}

/* ---------- Interactive machine guide ---------- */
.guide-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
}

.guide-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    box-shadow: var(--shadow-card);
    transition: transform .4s ease, box-shadow .4s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.guide-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--accent-tint);
}

.guide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-veil {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(180deg, rgba(24, 25, 28, 0) 32%, rgba(24, 25, 28, .84) 100%);
    pointer-events: none;
}

.guide-dot {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    background: rgba(28, 29, 32, .35);
    color: #fff;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.guide-dot-core {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
    transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.guide-dot::before {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    animation: guide-pulse 2.4s ease-out infinite;
}

.guide-dot:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.guide-dot.is-active {
    border-color: var(--accent-color);
    background: rgba(197, 164, 109, .38);
    box-shadow: 0 0 0 7px rgba(197, 164, 109, .26);
    transform: translate(-50%, -50%) scale(1.12);
}

.guide-dot.is-active::before {
    opacity: 0;
    animation: none;
}

.guide-dot.is-active .guide-dot-core {
    background: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .4);
}

@keyframes guide-pulse {
    0% { opacity: .85; transform: scale(.82); }
    100% { opacity: 0; transform: scale(1.45); }
}

.guide-captions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.1rem 1.25rem 1.25rem;
}

.guide-caption {
    display: none;
    color: #fff;
}

.guide-caption.is-active {
    display: block;
    padding: .9rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-md);
    background: rgba(22, 15, 11, .74);
    box-shadow: 0 20px 38px -24px rgba(0, 0, 0, .85);
    backdrop-filter: blur(8px);
    animation: guide-fade .45s ease;
}

@keyframes guide-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.guide-caption-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
}

.guide-caption-text {
    margin-top: .35rem;
    font-size: .85rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .84);
}

.guide-readout {
    min-height: 6rem;
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
}

.guide-readout .guide-caption {
    color: var(--text-color);
}

.guide-readout .guide-caption.is-active {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.guide-readout .guide-caption-title {
    color: var(--text-color);
}

.guide-readout .guide-caption-text {
    color: var(--text-muted);
}

.guide-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .guide-body { padding: 1.75rem; }
}

.guide-steps {
    display: grid;
    gap: .45rem;
    margin-top: 1.1rem;
}

.guide-step {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    font-family: var(--font-body);
    font-size: .9rem;
    text-align: left;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.guide-step:hover {
    background: var(--surface-alt);
    color: var(--text-color);
}

.guide-step.is-active {
    border-color: var(--border-color);
    background: var(--surface-alt);
    color: var(--text-color);
    font-weight: 500;
}

.guide-step-num {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-color);
    font-size: .75rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.guide-step.is-active .guide-step-num {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .guide-dot::before { opacity: 0; animation: none; }
    .guide-caption.is-active { animation: none; }
}

/* ---------- Machines — bold editorial layout ---------- */
.machines-head {
    max-width: 46rem;
}

.machine-stack {
    display: grid;
    gap: 1.75rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .machine-stack { gap: 2.25rem; }
}

.machine-block {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 88% 6%, rgba(235, 217, 203, .55), transparent 56%),
        radial-gradient(circle at 4% 96%, rgba(205, 154, 154, .20), transparent 52%),
        linear-gradient(158deg, #ffffff 0%, #FBF7F2 52%, #EBD9CB 100%);
    color: var(--text-color);
    box-shadow: var(--shadow-card);
}

.machine-block::before {
    content: "";
    position: absolute;
    top: -25%;
    right: -8%;
    width: 60%;
    height: 85%;
    background: radial-gradient(circle, rgba(205, 154, 154, .26), transparent 64%);
    pointer-events: none;
}

.machine-inner {
    position: relative;
    padding: 1.75rem;
}

@media (min-width: 640px) {
    .machine-inner { padding: 2.25rem; }
}

@media (min-width: 1024px) {
    .machine-inner { padding: 2.75rem; }
}

.machine-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.9rem;
}

.machine-index {
    font-family: var(--font-heading);
    font-size: clamp(3.25rem, 9vw, 5rem);
    font-weight: 600;
    line-height: .9;
    color: rgba(58, 44, 37, .10);
    -webkit-text-stroke: 1.5px rgba(205, 154, 154, .55);
}

.machine-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.machine-name {
    margin-top: .4rem;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.02;
    color: var(--primary-color);
}

.machine-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .machine-grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
        gap: 3rem;
        align-items: start;
    }
}

.machine-block .guide-media {
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    box-shadow: var(--shadow-card);
}

.machine-intro {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.machine-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.5rem;
}

.machine-spec {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .74);
}

.machine-spec i {
    font-size: .95rem;
    color: var(--accent-color);
}

.machine-spec-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.05;
    color: var(--primary-color);
}

.machine-spec-label {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.machine-block .guide-step {
    border-color: transparent;
    color: var(--text-muted);
}

.machine-block .guide-step:hover {
    background: var(--surface-alt);
    color: var(--text-color);
}

.machine-block .guide-step.is-active {
    border-color: var(--accent-color);
    background: var(--accent-soft);
    color: var(--primary-color);
}

.machine-block .guide-step-num {
    border-color: var(--border-color);
    background: var(--surface-color);
    color: var(--primary-color);
}

.machine-block .guide-step.is-active .guide-step-num {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.machine-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.machine-price {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1;
    color: var(--primary-color);
}

.machine-price small {
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.machines-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 94% 6%, rgba(235, 217, 203, .45), transparent 46%),
        radial-gradient(circle at 4% 96%, rgba(205, 154, 154, .14), transparent 44%),
        var(--background-color);
}

/* ---------- Machines — clean storyboard guide ---------- */
.machine-stage {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    box-shadow: var(--shadow-card);
}

.machine-stage img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.machine-stage-count {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    box-shadow: 0 12px 24px -16px rgba(58, 44, 37, .7);
}

.machine-stage-current {
    font-size: 1.1rem;
}

.machine-stage-sep {
    color: var(--accent-color);
}

.step-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
    margin-top: 1.5rem;
    padding: .35rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
}

.step-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .5rem .55rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.step-tab:hover {
    color: var(--primary-color);
}

.step-tab.is-active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 14px 26px -18px rgba(58, 44, 37, .95);
}

.step-tab-num {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--primary-color);
    font-size: .68rem;
    font-weight: 700;
    transition: background-color .25s ease, color .25s ease;
}

.step-tab.is-active .step-tab-num {
    background: rgba(255, 255, 255, .24);
    color: #fff;
}

.step-readout {
    position: relative;
    min-height: 7rem;
    margin-top: 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    box-shadow: var(--shadow-card);
}

.step-readout-item {
    display: none;
}

.step-readout-item.is-active {
    display: block;
    animation: step-readout-in .4s ease;
}

@keyframes step-readout-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.step-readout-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--primary-color);
}

.step-readout-text {
    margin-top: .45rem;
    font-size: .88rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.machine-specs--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.75rem;
}

@media (min-width: 768px) {
    .machine-specs--wide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    .step-tabs {
        grid-template-columns: 1fr;
        border-radius: var(--radius-md);
    }
}

@media (prefers-reduced-motion: reduce) {
    .step-readout-item.is-active { animation: none; }
}