/**
 * Webbotica — Approach Section
 * Visual direction: restrained, editorial, useful.
 * No gradients, glow effects, decorative dots or circular step badges.
 */

.wb-approach {
    --wb-primary: var(--color-primary, #496af9);
    --wb-bg: var(--color-background, #fafaf8);
    --wb-surface: var(--color-surface, #ffffff);
    --wb-heading: var(--color-heading, #111827);
    --wb-text: var(--color-paragraph, #6b7280);
    --wb-border: var(--color-border, #e5e7eb);
    --wb-soft: var(--color-secondary-bg, #f3f4f6);
    --wb-radius-lg: var(--radius-large, 22px);
    --wb-radius-md: var(--radius-medium, 16px);
    --wb-radius-sm: var(--radius-small, 10px);
    --wb-motion: var(--motion-premium, 550ms cubic-bezier(.22, 1, .36, 1));

    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: clip;
    padding: clamp(38px, 6vh, 72px) 0;
    background: var(--wb-bg);
    color: var(--wb-heading);
}

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

.wb-approach__container {
    width: min(100% - 48px, 1240px);
    margin-inline: auto;
}

.wb-approach__header {
    max-width: 1060px;
    margin-bottom: clamp(24px, 3.4vh, 38px);
}

.wb-approach__title {
    max-width: 1040px;
    margin: 0;
    color: var(--wb-heading);
    font-size: clamp(2.3rem, 4.8vw, 4rem);
    font-weight: 650;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
}

.wb-approach__intro {
    max-width: 960px;
    margin: 18px 0 0;
    color: var(--wb-text);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.wb-approach__experience {
    display: grid;
    grid-template-columns: minmax(270px, 0.68fr) minmax(0, 1.62fr);
    gap: clamp(22px, 3vw, 38px);
    align-items: stretch;
}

.wb-approach__steps-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
}

.wb-approach__guide {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--wb-text);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.wb-approach__guide-arrow {
    color: var(--wb-heading);
    font-size: 1rem;
    line-height: 1;
}

.wb-approach__steps {
    border-top: 1px solid var(--wb-border);
}

.wb-approach__step {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 10px 14px;
    align-items: center;
    padding: 20px 4px;
    border: 0;
    border-bottom: 1px solid var(--wb-border);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.wb-approach__step::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--wb-primary);
    transition: width 260ms ease;
}

.wb-approach__step:hover::before,
.wb-approach__step.is-active::before {
    width: 100%;
}

.wb-approach__step:focus-visible {
    outline: 2px solid var(--wb-primary);
    outline-offset: 5px;
}

.wb-approach__step-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.wb-approach__step-number {
    color: var(--wb-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: color 220ms ease;
}

.wb-approach__step-title {
    color: var(--wb-heading);
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    font-weight: 650;
    letter-spacing: -0.025em;
}

.wb-approach__step-summary {
    grid-column: 1;
    max-width: 230px;
    margin-left: 34px;
    color: var(--wb-text);
    font-size: 0.82rem;
    line-height: 1.48;
}

.wb-approach__step-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--wb-text);
    font-size: 1.12rem;
    transition: color 220ms ease, transform 220ms ease;
}

.wb-approach__step:hover .wb-approach__step-arrow,
.wb-approach__step.is-active .wb-approach__step-arrow {
    color: var(--wb-heading);
    transform: translateX(4px);
}

.wb-approach__step.is-active .wb-approach__step-number {
    color: var(--wb-primary);
}

.wb-approach__canvas {
    min-width: 0;
    min-height: 470px;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: var(--wb-radius-lg);
    background: var(--wb-surface);
    box-shadow: 0 20px 54px rgba(17, 24, 39, 0.06);
}

.wb-approach__canvas-topbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px clamp(20px, 2.6vw, 30px);
    border-bottom: 1px solid var(--wb-border);
    background: var(--wb-surface);
}

.wb-approach__canvas-label {
    color: var(--wb-text);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.wb-approach__business-name {
    margin: 0;
    color: var(--wb-heading);
    font-size: 0.82rem;
    font-weight: 650;
}

.wb-approach__business-name::before {
    content: "/";
    margin-right: 10px;
    color: var(--wb-border);
}

.wb-approach__panel {
    min-height: 411px;
    padding: clamp(24px, 3vw, 36px);
    animation: wbApproachPanelIn var(--wb-motion) both;
}

.wb-approach__panel[hidden] {
    display: none;
}

.wb-approach__panel-heading {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    margin-bottom: 24px;
}

.wb-approach__panel-label,
.wb-approach__finding > span,
.wb-approach__principle > span,
.wb-approach__order-row > span,
.wb-approach__insight-list > div > span {
    color: var(--wb-text);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.wb-approach__panel-heading h3 {
    max-width: 650px;
    margin: 0;
    color: var(--wb-heading);
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.08;
    text-wrap: balance;
}

/* Understand */
.wb-approach__understand-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.36fr) minmax(220px, 0.64fr);
    gap: 18px;
    align-items: stretch;
}

.wb-approach__contact-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius-md);
    overflow: hidden;
}

.wb-approach__contact-choice {
    position: relative;
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 22px;
    border-right: 1px solid var(--wb-border);
    background: var(--wb-surface);
}

.wb-approach__contact-choice:last-child {
    border-right: 0;
}

.wb-approach__contact-choice.is-selected {
    box-shadow: inset 0 -3px 0 var(--wb-primary);
    background: #fbfbff;
}

.wb-approach__contact-choice svg {
    width: 28px;
    height: 28px;
    margin-bottom: 25px;
    fill: none;
    stroke: var(--wb-heading);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wb-approach__contact-choice.is-selected svg {
    stroke: var(--wb-primary);
}

.wb-approach__contact-choice strong {
    color: var(--wb-heading);
    font-size: 0.98rem;
    font-weight: 650;
}

.wb-approach__contact-choice span {
    margin-top: 6px;
    color: var(--wb-text);
    font-size: 0.78rem;
}

.wb-approach__finding {
    min-height: 176px;
    padding: 22px;
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius-md);
    background: var(--wb-soft);
}

.wb-approach__finding strong {
    display: block;
    margin-top: 22px;
    color: var(--wb-heading);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.wb-approach__finding p {
    margin: 11px 0 0;
    color: var(--wb-text);
    font-size: 0.84rem;
    line-height: 1.55;
}

/* Build */
.wb-approach__build-layout {
    display: grid;
    grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1.58fr);
    gap: 20px;
    align-items: stretch;
}

.wb-approach__form-visual {
    min-height: 238px;
    overflow: hidden;
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius-md);
    background: var(--wb-surface);
}

.wb-approach__form-bar {
    height: 35px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid var(--wb-border);
    background: var(--wb-soft);
    color: var(--wb-text);
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wb-approach__form-body {
    display: grid;
    gap: 10px;
    padding: 20px 16px;
}

.wb-approach__form-body strong {
    margin-bottom: 4px;
    color: var(--wb-heading);
    font-size: 0.92rem;
    font-weight: 650;
}

.wb-approach__form-field,
.wb-approach__form-action {
    display: flex;
    align-items: center;
    min-height: 35px;
    padding: 0 11px;
    border: 1px solid var(--wb-border);
    border-radius: 7px;
    color: #8a909a;
    font-size: 0.69rem;
}

.wb-approach__form-action {
    justify-content: center;
    border-color: var(--wb-primary);
    background: var(--wb-primary);
    color: #fff;
    font-weight: 650;
}

.wb-approach__build-order {
    border-top: 1px solid var(--wb-border);
}

.wb-approach__order-row {
    position: relative;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-height: 79px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--wb-border);
}

.wb-approach__order-row.is-first {
    padding-left: 14px;
}

.wb-approach__order-row.is-first::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: var(--wb-primary);
}

.wb-approach__order-row.is-first > span {
    color: var(--wb-primary);
}

.wb-approach__order-row strong {
    display: block;
    color: var(--wb-heading);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.3;
}

.wb-approach__order-row p {
    margin: 5px 0 0;
    color: var(--wb-text);
    font-size: 0.77rem;
    line-height: 1.4;
}

/* Improve */
.wb-approach__improve-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(230px, 0.76fr);
    gap: 18px;
    align-items: stretch;
}

.wb-approach__journey-visual {
    min-height: 232px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius-md);
    background: var(--wb-surface);
}

.wb-approach__journey-stage {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 15px 10px;
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius-sm);
    text-align: center;
}

.wb-approach__journey-stage.is-focus {
    border-color: var(--wb-primary);
    box-shadow: inset 0 -3px 0 var(--wb-primary);
}

.wb-approach__journey-stage svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--wb-heading);
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wb-approach__journey-stage.is-focus svg {
    stroke: var(--wb-primary);
}

.wb-approach__journey-stage span {
    color: var(--wb-heading);
    font-size: 0.76rem;
    font-weight: 620;
    line-height: 1.3;
}

.wb-approach__journey-arrow {
    color: #b0b5be;
    font-size: 1.05rem;
}

.wb-approach__journey-note {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 15px;
    border-top: 1px solid var(--wb-border);
    color: var(--wb-text);
    font-size: 0.78rem;
    line-height: 1.45;
}

.wb-approach__insight-list {
    border-top: 1px solid var(--wb-border);
}

.wb-approach__insight-list > div {
    padding: 14px 4px;
    border-bottom: 1px solid var(--wb-border);
}

.wb-approach__insight-list p {
    margin: 7px 0 0;
    color: var(--wb-heading);
    font-size: 0.82rem;
    font-weight: 560;
    line-height: 1.45;
}

.wb-approach__insight-list .wb-approach__next-move {
    padding-left: 14px;
    border-left: 2px solid var(--wb-primary);
}

.wb-approach__next-move > span {
    color: var(--wb-primary);
}

.wb-approach__next-move strong {
    display: block;
    margin-top: 7px;
    color: var(--wb-heading);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.35;
}

/* Shared conclusion */
.wb-approach__principle {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--wb-border);
}

.wb-approach__principle p {
    max-width: 650px;
    margin: 0;
    color: var(--wb-heading);
    font-size: 0.9rem;
    font-weight: 610;
    line-height: 1.48;
}

@keyframes wbApproachPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1020px) {
    .wb-approach {
        min-height: auto;
    }

    .wb-approach__experience {
        grid-template-columns: minmax(230px, 0.58fr) minmax(0, 1.42fr);
    }

    .wb-approach__step-summary {
        margin-left: 0;
    }

    .wb-approach__understand-layout,
    .wb-approach__improve-layout {
        grid-template-columns: 1fr;
    }

    .wb-approach__finding {
        min-height: 0;
    }

    .wb-approach__panel {
        min-height: 470px;
    }
}

@media (max-width: 760px) {
    .wb-approach {
        min-height: auto;
        align-items: flex-start;
        padding: 52px 0 62px;
    }

    .wb-approach__container {
        width: min(100% - 32px, 1240px);
    }

    .wb-approach__header {
        margin-bottom: 22px;
    }

    .wb-approach__title {
        font-size: clamp(2.05rem, 9.4vw, 3.25rem);
        line-height: 1;
    }

    .wb-approach__intro {
        margin-top: 14px;
        font-size: 0.93rem;
        line-height: 1.58;
    }

    .wb-approach__experience {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .wb-approach__canvas {
        order: 1;
        min-height: 0;
        border-radius: 18px;
    }

    .wb-approach__steps-wrap {
        order: 2;
        padding: 0;
    }

    .wb-approach__guide {
        margin-bottom: 8px;
    }

    .wb-approach__steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wb-approach__step {
        min-width: 0;
        display: block;
        padding: 13px 8px 14px;
        border-right: 1px solid var(--wb-border);
    }

    .wb-approach__step:last-child {
        border-right: 0;
    }

    .wb-approach__step-main {
        display: grid;
        gap: 5px;
    }

    .wb-approach__step-number {
        font-size: 0.62rem;
    }

    .wb-approach__step-title {
        font-size: 0.78rem;
    }

    .wb-approach__step-summary,
    .wb-approach__step-arrow {
        display: none;
    }

    .wb-approach__canvas-topbar {
        min-height: 52px;
        padding: 13px 16px;
    }

    .wb-approach__canvas-label,
    .wb-approach__business-name {
        font-size: 0.68rem;
    }

    .wb-approach__business-name::before {
        margin-right: 7px;
    }

    .wb-approach__panel {
        min-height: 0;
        padding: 19px 16px 17px;
    }

    .wb-approach__panel-heading {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 17px;
    }

    .wb-approach__panel-label {
        font-size: 0.61rem;
    }

    .wb-approach__panel-heading h3 {
        font-size: 1.18rem;
    }

    .wb-approach__understand-layout {
        gap: 10px;
    }

    .wb-approach__contact-choice {
        min-height: 116px;
        padding: 14px 10px;
    }

    .wb-approach__contact-choice svg {
        width: 22px;
        height: 22px;
        margin-bottom: 14px;
    }

    .wb-approach__contact-choice strong {
        font-size: 0.78rem;
    }

    .wb-approach__contact-choice span {
        margin-top: 4px;
        font-size: 0.63rem;
    }

    .wb-approach__finding {
        display: grid;
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 8px 12px;
        padding: 14px;
    }

    .wb-approach__finding strong {
        margin: 0;
        font-size: 0.94rem;
    }

    .wb-approach__finding p {
        grid-column: 2;
        margin: 0;
        font-size: 0.72rem;
        line-height: 1.45;
    }

    .wb-approach__build-layout {
        grid-template-columns: minmax(112px, 0.38fr) minmax(0, 0.62fr);
        gap: 12px;
    }

    .wb-approach__form-visual {
        min-height: 218px;
    }

    .wb-approach__form-body {
        padding: 15px 11px;
    }

    .wb-approach__form-field,
    .wb-approach__form-action {
        min-height: 30px;
        padding: 0 8px;
        font-size: 0.58rem;
    }

    .wb-approach__order-row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px;
        min-height: 69px;
        padding: 12px 0;
    }

    .wb-approach__order-row.is-first {
        padding-left: 9px;
    }

    .wb-approach__order-row.is-first::before {
        top: 12px;
        bottom: 12px;
    }

    .wb-approach__order-row > span {
        font-size: 0.57rem;
    }

    .wb-approach__order-row strong {
        font-size: 0.71rem;
    }

    .wb-approach__order-row p {
        display: none;
    }

    .wb-approach__improve-layout {
        gap: 10px;
    }

    .wb-approach__journey-visual {
        min-height: 0;
        gap: 6px;
        padding: 14px;
    }

    .wb-approach__journey-stage {
        min-height: 82px;
        gap: 10px;
        padding: 10px 6px;
    }

    .wb-approach__journey-stage svg {
        width: 20px;
        height: 20px;
    }

    .wb-approach__journey-stage span {
        font-size: 0.6rem;
    }

    .wb-approach__journey-arrow {
        font-size: 0.8rem;
    }

    .wb-approach__journey-note {
        padding-top: 11px;
        font-size: 0.68rem;
    }

    .wb-approach__insight-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .wb-approach__insight-list > div {
        padding: 11px 9px;
        border-right: 1px solid var(--wb-border);
    }

    .wb-approach__insight-list > div:nth-child(2) {
        border-right: 0;
    }

    .wb-approach__insight-list .wb-approach__next-move {
        grid-column: 1 / -1;
        border-right: 0;
    }

    .wb-approach__insight-list p {
        font-size: 0.69rem;
    }

    .wb-approach__next-move strong {
        font-size: 0.78rem;
    }

    .wb-approach__principle {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 10px;
        margin-top: 13px;
        padding-top: 13px;
    }

    .wb-approach__principle > span {
        font-size: 0.58rem;
    }

    .wb-approach__principle p {
        font-size: 0.73rem;
        line-height: 1.42;
    }
}

@media (max-width: 390px) {
    .wb-approach__container {
        width: min(100% - 26px, 1240px);
    }

    .wb-approach__panel-heading,
    .wb-approach__principle {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .wb-approach__finding {
        grid-template-columns: 66px minmax(0, 1fr);
    }

    .wb-approach__build-layout {
        grid-template-columns: 104px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wb-approach *,
    .wb-approach *::before,
    .wb-approach *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
