/* Startup Support Plan - page styles */
/* --- Reset --- */
.sec-body.onboarding-support {
    padding: 0;
    margin-top: 0;
}

section#onboarding-support {
    padding: 0;
    margin-bottom: -20rem;
}

@media screen and (max-width:959px) {
    section#onboarding-support {
        padding: 0;
        margin-bottom: -16rem;
    }
}

@media screen and (max-width:767px) {
    section#onboarding-support {
        padding: 0;
        margin-bottom: -12rem;
    }
}

@media screen and (max-width:480px) {
    section#onboarding-support {
        padding: 0;
        margin-bottom: -10rem;
    }
}

/* --- Section base --- */
.ss-section {
    padding: 60px 0;
}

.ss-section--no-pb {
    padding-bottom: 0;
}

/* Downward triangle arrow bleeding into next section */
.ss-section--arrow-bottom {
    position: relative;
}

.ss-section--arrow-bottom::after {
    content: '';
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 48px solid transparent;
    border-right: 48px solid transparent;
    border-top: 32px solid #fff;
    z-index: 2;
}

/* Full-width tint section with dot pattern */
.ss-section--tint {
    background-image: conic-gradient(#ebf5f1 90deg, transparent 90deg 180deg, #ebf5f1 180deg 270deg, transparent 270deg);
    background-size: 5px 5px;
    background-color: #effcf7;
    padding: 0;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    overflow: hidden;
}

.ss-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 30px;
}

.ss-inner--narrow {
    max-width: 600px;
    text-align: center;
}

/* Wave SVG divider */
.ss-wave {
    display: block;
    line-height: 0;
    overflow: hidden;
    margin-bottom: -1px;
    /* prevent subpixel gap */
}

.ss-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* Padding inside tint sections */
.ss-section--tint .ss-inner {
    padding-top: 48px;
    padding-bottom: 64px;
}

/* --- Section title --- */
.ss-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 4.8rem;
    line-height: 1.35;
    text-align: center;
    color: #292929;
}

/* Dot ornament below title */
.ss-title::after {
    content: '';
    display: block;
    width: 45px;
    height: 13px;
    background: url('/themes/magic-pod/img/2025/dots.svg') center / contain no-repeat;
    margin: 10px auto 0;
}

/* --- Onayami speech bubbles --- */
.ss-onayami {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 56px;
}

.ss-onayami-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 320px;
}

.ss-bubble {
    background: #edecec;
    border-radius: 16px;
    padding: 22px 28px;
    font-size: 1.7rem;
    font-weight: 600 !important;
    text-align: center;
    line-height: 1.7;
    color: #1d3a27;
    position: relative;
    width: 100%;

    &::after {
        content: '';
        position: absolute;
        bottom: -18px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 18px 12px 0;
        border-style: solid;
        border-color: #edecec transparent transparent;
    }
}

.ss-onayami-img {
    margin-top: 22px;
    max-width: 110px;
    width: 100%;
}

/* Scroll indicator chevron */
.ss-scroll-line {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}

.ss-scroll-line svg {
    display: block;
}

/* --- Solution block --- */
.ss-solution {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 40px;
}

.ss-solution-sub {
    font-size: 1.6rem;
    font-weight: 600 !important;
}

.ss-solution-phrase {
    font-size: 2.6rem;
    font-weight: 700 !important;
    color: #292929;
    line-height: 1.4;
    margin-bottom: 24px;
}

.ss-solution-img {
    max-width: 180px;
    margin: 24px auto;
}

.ss-solution-content {
    width: 70%;
}

.ss-solution-desc {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #444;
    max-width: 520px;
    margin-bottom: 8px;
}

.ss-note {
    font-size: 1.3rem;
    color: #666;
    margin: 0;
}

.text-green {
    color: var(--main-color-1);
}

/* --- Before / After --- */
.ss-ba-wrap {
    display: flex;
    align-items: stretch;
    margin-bottom: 48px;
    overflow: visible;
    /* allow triangle to overflow */
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.ss-ba {
    flex: 1;
    padding: 32px 28px;
}

.ss-ba--before {
    background: #f9f9f9;
    border-radius: 16px 0 0 16px;
    position: relative;
}

/* Right-pointing triangle arrow */
.ss-ba--before::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #f9f9f9;
    z-index: 2;
}

.ss-ba--after {
    background: #ffffff;
    border-radius: 0 16px 16px 0;
}

.ss-ba-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-align: center;
}

.ss-ba--before .ss-ba-heading {
    color: #4b4b4b;
}

.ss-ba--after .ss-ba-heading {
    color: var(--main-color-1);
}

.ss-ba-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ss-ba-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    line-height: 1.6;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
}

.ss-ba--before .ss-ba-list li {
    color: #292929;
}

.ss-ba--before .ss-ba-list li svg {
    color: #d15151;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}

.ss-ba--after .ss-ba-list li svg {
    color: var(--main-color-1);
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}

/* --- Customer voice --- */
.ss-voice {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.ss-voice-avatar-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ss-voice-label {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600 !important;
    color: #1d6135;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.ss-voice-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #c8e6d4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d6135;
}

.ss-voice-avatar svg {
    width: 36px;
    height: 36px;
}

.ss-voice-bubble {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Left-pointing triangle toward avatar */
.ss-voice-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 40px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid #fff;
}

.ss-voice-bubble p {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.9;
    color: #222;
}

/* --- Issue list --- */
.ss-issue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    counter-reset: issue-counter;
}

.ss-issue-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f7f7f7;
    border-radius: 10px;
    padding: 20px 22px;
    font-size: 1.6rem;
    line-height: 1.6;
    counter-increment: issue-counter;

    &::before {
        content: counter(issue-counter);
        min-width: 32px;
        height: 32px;
        background: #666;
        color: #fff;
        font-size: 1.4rem;
        font-weight: 700;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
}

/* Illustrations flanking the issue list */
.ss-issue-figures {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -20px;
}

.ss-issue-figure img {
    height: 150px;
    width: auto;
}

.ss-issue-figure--left img {
    transform: scaleX(-1);
}

/* --- Feature list --- */
.ss-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ss-feature-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    padding: 16px 16px 8px;
    font-size: 1.4rem;
    font-weight: 600 !important;
    line-height: 1.6;
    text-align: center;
    gap: 8px;
}

.ss-feature-img {
    width: 200px;
    height: auto;
}

/* --- Flow --- */
.ss-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Vertical connector line: drawn per item (not last) to avoid overshooting the last circle */
.ss-flow-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 32px;
    /* center of 64px circle */
    top: 32px;
    /* center of this item's circle */
    bottom: -32px;
    /* reaches center of next item's circle */
    width: 2px;
    background: #b2ddc2;
    z-index: 0;
}

.ss-flow-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
    padding: 0 0 40px;
    position: relative;
    z-index: 1;

    &:last-child {
        padding-bottom: 0;
    }
}

.ss-flow-num {
    width: 64px;
    height: 64px;
    background: var(--main-color-1);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ss-flow-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
    line-height: 1.4;
}

.ss-flow-item p {
    font-size: 1.4rem;
    line-height: 1.75;
    color: #666;
    margin: 0;
}

/* Flow layout with illustration on the right */
.ss-flow-wrap {
    display: flex;
    align-items: center;
    gap: 40px;
}

.ss-flow-wrap .ss-flow {
    flex: 1;
}

.ss-flow-figure {
    flex-shrink: 0;
    text-align: center;
}

.ss-flow-figure img {
    width: 200px;
    height: auto;
}

/* --- FAQ --- */
.ss-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ss-faq-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.ss-faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ss-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
    color: #292929;
    transition: color 0.2s ease;

    &::-webkit-details-marker {
        display: none;
    }
}

.ss-faq-item:hover .ss-faq-q {
    color: var(--main-color-1);
}

.ss-faq-chevron {
    flex-shrink: 0;
    color: var(--main-color-1);
    transition: transform 0.25s ease;
}

details[open] .ss-faq-chevron {
    transform: rotate(180deg);
}

.ss-faq-a {
    padding: 20px 28px 24px;
    font-size: 1.6rem;
    line-height: 1.9;
    color: #555;
    border-top: 1px solid #e0ece4;
}

/* --- Pricing --- */
.ss-price-desc {
    font-size: 1.8rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 0;
}

/* --- CTA --- */
#onboarding-support .btn-cta {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

/* Full-width CTA with background */
#onboarding-support .btn-cta--bg {
    background: #fafafa;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

#onboarding-support .btn-cta p {
    font-size: 2rem;
    font-weight: 600;
    color: #292929;
    margin-bottom: 20px;
}

/* ============================================================
   Tablet (max 959px)
   ============================================================ */
@media screen and (max-width: 959px) {
    #onboarding-support .sec-header {
        padding-left: 30px;
        padding-right: 30px;

        p.text-center {
            font-size: 16px;
        }
    }

    .ss-section {
        padding: 56px 0;
    }

    .ss-solution-phrase {
        font-size: 2.2rem;
    }

    .ss-feature-list {
        grid-template-columns: 1fr 1fr;
    }

    /* BA stacks vertically */
    .ss-ba-wrap {
        flex-direction: column;
    }

    .ss-ba--before {
        border-radius: 16px 16px 0 0;
    }

    /* Downward triangle */
    .ss-ba--before::after {
        right: auto;
        top: auto;
        left: 50%;
        bottom: -20px;
        transform: translateX(-50%);
        border-top: 20px solid #f9f9f9;
        border-bottom: none;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
    }

    .ss-ba--after {
        border-radius: 0 0 16px 16px;
    }
}

/* ============================================================
   Mobile (max 767px)
   ============================================================ */
@media screen and (max-width: 767px) {
    #onboarding-support .sec-header {
        p.text-center {
            text-align: initial;
            font-size: 15px;
        }
    }

    .ss-section {
        padding: 48px 0;
    }

    .ss-section.ss-section--tint {
        padding: 0;
    }

    .ss-inner {
        padding: 0 12px;
    }

    .ss-section--tint .ss-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ss-wave svg {
        height: 48px;
    }

    .ss-title {
        font-size: 2rem;
        margin-bottom: 2.8rem;
    }

    /* Onayami: stack vertically, items switch to horizontal */
    .ss-onayami {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        margin-bottom: 0;
    }

    .ss-onayami-item {
        flex-direction: row;
        align-items: center;
        max-width: 100%;
        width: 100%;
        gap: 16px;
    }

    /* Second item: image on left */
    .ss-onayami-item--reverse {
        flex-direction: row-reverse;
    }

    .ss-onayami-img {
        flex-shrink: 0;
        max-width: 80px;
        width: 80px;
        margin-top: 0;
    }

    /* Bubble: right-pointing triangle */
    .ss-bubble {
        font-size: 1.55rem;
        padding: 16px 20px;
        width: auto;
        flex: 1;

        &::after {
            bottom: auto;
            left: auto;
            top: 50%;
            right: -14px;
            transform: translateY(-50%);
            border-width: 12px 0 12px 14px;
            border-color: transparent transparent transparent #edecec;
        }
    }

    /* Reversed bubble: left-pointing triangle */
    .ss-bubble--reverse::after {
        right: auto;
        left: -14px;
        border-width: 12px 14px 12px 0;
        border-color: transparent #edecec transparent transparent;
    }

    /* Solution: vertical stack */
    .ss-solution {
        padding: 32px 0 28px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 0;
    }

    .ss-solution-content {
        width: 100%;
    }

    .ss-solution-phrase {
        font-size: 1.8rem;
    }

    /* Issue & feature: single column */
    .ss-issue-list,
    .ss-feature-list {
        grid-template-columns: 1fr;
    }

    .ss-issue-list li {
        font-size: 1.5rem;
        padding: 16px 18px;
    }

    .ss-issue-figures {
        margin-top: -5px;
    }

    .ss-issue-figure img {
        height: 120px;
    }

    .ss-feature-list li {
        font-size: 1.6rem;
    }

    /* Voice */
    .ss-voice {
        gap: 14px;
    }

    .ss-voice-avatar {
        width: 52px;
        height: 52px;
    }

    .ss-voice-avatar svg {
        width: 30px;
        height: 30px;
    }

    .ss-voice-bubble {
        padding: 16px 18px;
    }

    .ss-voice-bubble p {
        font-size: 1.5rem;
    }

    /* Flow: vertical stack */
    .ss-flow-wrap {
        flex-direction: column;
    }

    .ss-flow-figure img {
        width: 160px;
    }

    .ss-flow-title {
        font-size: 1.6rem;
    }

    .ss-flow-item p {
        font-size: 1.4rem;
    }

    /* FAQ */
    .ss-faq-q {
        font-size: 1.55rem;
        padding: 16px 18px;
    }

    .ss-faq-a {
        font-size: 1.45rem;
        padding: 14px 18px 18px;
    }

    #onboarding-support .btn-cta p {
        font-size: 1.8rem;
    }
}

/* ============================================================
   Small phone (max 480px)
   ============================================================ */
@media screen and (max-width: 480px) {
    #onboarding-support .sec-header {
        padding-left: 10px;
        padding-right: 10px;
    }

    .ss-title {
        font-size: 1.8rem;
        margin-bottom: 2.4rem;
    }

    .ss-solution-phrase {
        font-size: 1.65rem;
    }

    .ss-flow-num {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .ss-flow-item:not(:last-child)::after {
        left: 22px;
        /* center of 44px circle */
        top: 22px;
        bottom: -22px;
    }

    .ss-flow-title {
        font-size: 1.5rem;
    }

    .ss-flow-item p {
        font-size: 1.35rem;
    }

    .ss-faq-q {
        font-size: 1.45rem;
    }

    #onboarding-support .btn-cta p {
        font-size: 1.65rem;
    }
}