/* ============================================================
   Landing Page – 1 PAGE 個人品牌  |  Teal Theme
   ============================================================ */

:root {
    --primary:       #2AB5A0;
    --primary-dark:  #1E9E8B;
    --primary-light: #EAF8F6;
    --primary-mid:   #D0F0EC;
    --text:          #1F2D3A;
    --text-muted:    #5A6E7B;
    --svc-sheet-sub: #6B6B6B;   /* svc-sheet 副標：中灰，三站共用 */
    --border:        #C5E5E0;
    --white:         #fff;
    --radius-card:   16px;
    --radius-btn:    10px;
    --shadow-card:   0 4px 32px rgba(42, 181, 160, 0.10);
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Noto Sans TC', 'Raleway', sans-serif;
    background: var(--primary-light);
    color: var(--text);
    line-height: 1.6;
}

a  { text-decoration: none; }
p  { margin: 0 0 .5rem; }
h1, h2, h3, h4 { margin: 0 0 .5rem; }
img { max-width: 100%; height: auto; display: block; }

/* ── Nav ──────────────────────────────────────────────────── */
.main-nav {
    background: var(--white);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    /* No justify-content: space-between — .nav-modes uses margin-right:auto to push
       .nav-right to the far edge while staying anchored next to .nav-left (matches funnel-wizard) */
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(226,232,240,.9);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
    font-size: 16px;
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }  /* push to far right regardless of whether .nav-modes is a sibling (index.html) or nested in .nav-left (editor.html) */

/* Logo */
.logo-img-link { display: flex; align-items: center; flex-shrink: 0; margin-left: 8px; margin-right: 12px; }
.logo-img      { width: 130px; height: auto; display: block; }

/* Clean brand title (replaces logo + service switcher) — matches linenamecard */
.nav-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-left: 8px;
    margin-right: 4px;
    flex-shrink: 0;
    color: #111;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .3px;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}
.nav-brand__accent { color: var(--primary); }
.nav-brand:hover { opacity: .85; }

/* Generic nav link */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }

/* CTA nav link */
.nav-link--cta {
    color: var(--white);
    background: var(--primary);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
}
.nav-link--cta:hover { background: var(--primary-dark); color: var(--white); }

/* Outline (bordered) nav button — e.g. 範例 */
.nav-link--outline {
    color: var(--primary);
    background: transparent;
    font-weight: 600;
    padding: 8px 16px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-btn);
}
.nav-link--outline:hover { background: var(--primary-light); color: var(--primary); }

/* Section mode links */
.nav-modes {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}
/* Active state: bgcolor + text color (same as hover) */
.nav-link--active {
    color: var(--primary);
    background: var(--primary-light);
}

/* ── Service Switcher ─────────────────────────────────────── */
.svc-switcher { position: relative; }

.svc-switcher__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    width: 150px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.28);
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 8px;
    transition: border-color .18s;
    white-space: nowrap;
}
.svc-switcher__btn:hover,
.svc-switcher__btn[aria-expanded="true"] { border-color: rgba(0,0,0,0.55); }

.svc-switcher__chevron {
    flex-shrink: 0;
    width: 12px;
    height: 7px;
    transition: transform .2s;
}
.svc-switcher__btn[aria-expanded="true"] .svc-switcher__chevron {
    transform: rotate(180deg);
}

/* Dropdown panel */
.svc-switcher__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.11);
    z-index: 500;
    min-width: 200px;
    padding: 6px;
    overflow: hidden;
}
.svc-switcher__menu--open { display: flex; }

.svc-switcher__group-label {
    margin: 0 -6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0,0,0,.12);
}
.svc-switcher__menu > .svc-switcher__group-label:first-child {
    margin-top: -6px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.svc-switcher__menu > .svc-switcher__group-label:not(:first-child) {
    margin-top: 10px;
}
.svc-switcher__menu > .svc-switcher__group-label + a,
.svc-switcher__menu > .svc-switcher__group-label + span {
    margin-top: 6px;
}

.svc-switcher__item {
    display: block;
    padding: 8px 14px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: background .15s, color .15s;
    white-space: nowrap;
}
/* Active item: text color only, no bgcolor */
.svc-switcher__item--active { color: var(--primary); font-weight: 700; }

/* Per-service hover theme colours */
.svc-switcher__item--personal:hover { background: var(--primary-light); color: var(--primary); }
.svc-switcher__item--line:hover { background: #E8F9E8; color: #00A300; }
.svc-switcher__item--poster:hover { background: #FFF3EF; color: #F55A2B; }
.svc-switcher__item--funnel:hover { background: #E3F2FD; color: #2196F3; }
.svc-switcher__item--xlead:hover { background: #FFF6E0; color: #E8941C; }

/* ── 模擬體驗 badge (shown next to LIVE DEMO) ──────────────── */
.nav-demo-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 4px;
    margin-left: 6px; margin-bottom: -5px;
    font-size: 14px; font-weight: 300;
    background: var(--primary); color: #fff;
    white-space: nowrap; flex-shrink: 0; letter-spacing: 0.04em;
}

/* ── Dev environment badge ────────────────────────────────── */
.onepage-dev-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: #fef3c7;
    color: #92400e;
    white-space: nowrap;
    flex-shrink: 0;
}
/* Mobile-only Dev/Site two-line badge — desktop default = hidden */
.onepage-dev-badge--mobile { display: none; }

/* ── Mobile nav (<=640px): two-row layout matching funnel-wizard / design dev ──
   Row 1: logo + selection box            (Dev/Site badge hidden on mobile)
   Row 2: 主頁 + LIVE DEMO + 開始建立 (right via margin-left:auto) */
@media (max-width: 640px) {
    .main-nav {
        padding: 10px 18px 12px;
        flex-wrap: wrap;
        column-gap: 8px;
        row-gap: 14px;
    }

    /* Brand row.  Mobile-only: Dev/Site badge is hidden (see below) so no
       padding-right reserve is needed — gives row 1 (logo + selection box +
       selection box) a bit more room before wrapping, important on narrow phones
       where the selection text "1 PAGE 個人品牌" is xeditor's longest. */
    .nav-left {
        flex: 1 1 100%;
        flex-wrap: wrap;
        gap: 6px 8px;
    }
    .nav-brand { margin-left: 0; font-size: 19px; }
    .logo-img-link { margin-left: 0; margin-right: 4px; }
    /* Slightly smaller logo on mobile to help row 1 fit on one line. */
    .logo-img      { width: 100px; }
    .svc-switcher__btn {
        width: auto;
        padding: 7px 12px;
        font-size: 14px;
    }
    .svc-switcher__menu { min-width: 240px; }

    /* Dev/Site badge on mobile.  Desktop "Development Site" pill in .nav-right
       is hidden; instead the JS relocates #onepage-dev-badge-mobile to be the
       last child of .main-nav and injects a tiny "Development Site" line that
       falls on row 3 (under 主頁/LIVE DEMO/開始建立) via flex:1 1 100% +
       order:99.  Keeps row 1 (logo + selection) uncluttered. */
    .onepage-dev-badge--desktop { display: none; }
    .nav-dev-badge-mobile-slot {
        flex: 1 1 100%;
        order: 99;
        text-align: center;
        /* Tight ~3px breathing room above & below the badge.  Negative margins
           counteract .main-nav's row-gap:14px (above) and padding-bottom:12px
           (below); update these if the parent's row-gap / padding-bottom change. */
        margin-top: -11px;
        margin-bottom: -9px;
    }
    .onepage-dev-badge--mobile {
        display: inline-block;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.04em;
        color: #92400e;
        background: #fef3c7;
        padding: 2px 8px;
        border-radius: 4px;
        line-height: 1.3;
    }

    /* Row 2: modes (left) + nav-right (right via margin-left:auto) */
    .nav-modes {
        margin-left: 0;
        margin-right: 0;
        gap: 6px;
        flex: 0 1 auto;
    }
    .nav-right {
        margin-left: auto;
        gap: 8px;
        flex: 0 1 auto;
    }
    .nav-link { padding: 5px 10px; font-size: 15px; }
    .nav-link--cta { padding: 6px 14px; font-size: 14px; box-shadow: 0 3px 10px rgba(42,181,160,.3); }
}

/* ── Page wrapper ─────────────────────────────────────────── */
.main { }
.page { padding: 28px 16px 30px; }

/* ── Main card ────────────────────────────────────────────── */
.main-card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 36px 32px;
    max-width: 1060px;
    margin: 0 auto;
}

/* ── Two-column grid ──────────────────────────────────────── */
.body-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}
.col-left  { flex: 1 1 340px; min-width: 0; }
.col-right { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 0; }

/* ── Title block ──────────────────────────────────────────── */
.main-title {
    text-align: center;
    margin-bottom: 28px;
}
.main-title h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.brand-name        { color: var(--primary); }
.underline-emphasis {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-underline-offset: 4px;
}
.main-title h2 {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    padding: 5px 15px;
    vertical-align: middle;
    line-height: 1;
}
.badge-primary { background: var(--primary); color: var(--white); }
.badge-ghost   { background: rgba(255,255,255,.25); color: var(--white); }

@keyframes shine {
    0%, 100% { opacity: 1; }
    50%       { opacity: .7; }
}
.shine-effect { animation: shine 2.5s infinite; }

/* ── Hero image block ─────────────────────────────────────── */
.hero-image-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}
.hero-image-wrap img {
    max-height: 320px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
    display: block;
}

/* ── Hero description under image ─────────────────────────── */
.hero-desc {
    text-align: center;
    padding: 12px 8px 0;
}
.hero-desc h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.hero-desc p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Feature icons ────────────────────────────────────────── */
.features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
    margin: 20px 0 4px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: .88rem;
    color: var(--text);
}
.feature-item i { font-size: 1.7rem; color: var(--primary); }
.feature-item p { margin: 0; }

/* ── Value props ──────────────────────────────────────────── */
.value-props {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.value-prop-item {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px 16px 48px;
    position: relative;
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}
.value-prop-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(42,181,160,.12);
}
.value-prop-item::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 1.1rem;
}
.value-prop-item h3 {
    font-size: .97rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}
.value-prop-item p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── CTA button ───────────────────────────────────────────── */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 17px 24px;
    border-radius: var(--radius-btn);
    font-size: 1.15rem;
    font-weight: 700;
    width: 100%;
    margin-top: auto;
    transition: background .2s;
}
.cta-button:hover { background: var(--primary-dark); color: var(--white); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--white);
    border-top: 1px solid rgba(226,232,240,.9);
    box-shadow: 0 -2px 10px rgba(0,0,0,.04);
    position: relative;
}
/* Clean footer bar — logo + single copyright line (matches linenamecard) */
.footer-bar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 20px;
}
.footer-bar .footer-logo { display: flex; }
.footer-bar .footer-logo img { height: 30px; width: auto; display: block; }
.footer-top {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    justify-content: center;
}
.footer-logo img   { height: 52px; width: auto; }
.footer-about {
    flex: 1;
    min-width: 220px;
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}
.footer-offices {
    background: #f5faf9;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.footer-office h5 {
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 4px;
    color: var(--text);
}
.footer-office p  { font-size: .84rem; color: var(--text-muted); margin: 0; line-height: 1.7; }
.footer-office a  { display: block; font-size: .84rem; color: var(--primary); }
.footer-office a:hover { text-decoration: underline; }
.footer-copy {
    margin: 0;
    color: var(--text-muted);
    text-align: center;
    font-size: .85rem;
    line-height: 1.6;
}

/* ── Footer service links ─────────────────────────────────── */
/* Desktop: logo + copyright centered as a group · service links pinned to the page's far right (matches nav) */
.footer-bar { justify-content: center; }
.footer-bar .footer-copy { flex: 0 1 auto; }
.footer-services {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 28px;
    /* In-flow flex item; sits after the copyright with a 120px gap, whole row centered */
    margin-left: 120px;
}
.footer-svc {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 0;
    padding: 2px 0;
    margin: 0;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text);
    white-space: nowrap;
    cursor: pointer;
    transition: opacity .15s ease;
}
.footer-svc:hover { opacity: .66; }
.footer-svc__line { color: #06C755; }               /* LINE green */
.footer-svc__page { color: var(--primary); }         /* 1 PAGE teal (site title) */
.footer-svc__ai   { color: #F19A4B; }                /* AI bright orange */

/* ── Service bottom sheet ─────────────────────────────────── */
.svc-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(15, 30, 40, .44);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}
.svc-sheet-backdrop.is-open { opacity: 1; visibility: visible; }
.svc-sheet {
    --sheet-accent: var(--primary);
    --sheet-accent-dark: var(--primary-dark);
    --sheet-accent-soft: var(--primary-light);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 901;
    margin: 0 auto;
    width: min(460px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    padding: 0;
    background: var(--white);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 50px rgba(15, 30, 40, .22);
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.22, .61, .36, 1);
    pointer-events: none;
}
.svc-sheet.is-open { transform: translateY(0); pointer-events: auto; }
.svc-sheet__grip {
    width: 42px;
    height: 5px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: #d7e2e0;
}
/* Brand bar：品牌名 + 副標 + 關閉同一列，永遠在最上方 */
.svc-sheet__brandbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 12px 22px;
}
.svc-sheet__brandtext {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.svc-sheet__brandname {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .01em;
}
.svc-sheet__brandsub {
    color: var(--svc-sheet-sub);
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: .01em;
}
.svc-sheet__close {
    flex: 0 0 auto;
    margin-top: 1px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f4;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease;
}
.svc-sheet__close:hover { background: #e6edec; }
/* 底線分頁：品牌名（品牌色）+ 服務（黑字） */
.svc-sheet__tabs {
    display: flex;
    gap: 20px;
    padding: 0 22px;
    border-bottom: 1px solid #eef2f1;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.svc-sheet__tabs::-webkit-scrollbar { display: none; }
.svc-sheet__tab {
    position: relative;
    flex: 0 0 auto;
    background: none;
    border: 0;
    padding: 12px 2px;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--text);
    cursor: pointer;
}
.svc-sheet__tab-brand { font-weight: 800; }
.svc-sheet__tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--sheet-accent);
    transform: scaleX(0);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.svc-sheet__tab.is-active::after { transform: scaleX(1); }
/* Body：上排（圖＋說明）＋下排（tags＋前往看看） */
.svc-sheet__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 22px 22px;
}
/* 上排：左圖右文 */
.svc-sheet__top {
    display: flex;
    gap: 16px;
    align-items: center;
    min-height: 0;
}
.svc-sheet__img {
    flex: 0 0 46%;
    width: 46%;
    align-self: center;
    object-fit: contain;
    background: transparent;
}
.svc-sheet__text {
    flex: 1 1 auto;
    min-width: 0;
}
/* 下排：tags 靠左、前往看看 靠右同列 */
.svc-sheet__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
/* Metaphor：粗體黑字 */
.svc-sheet__metaphor {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
}
.svc-sheet__desc {
    margin: 0;
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.8;
}
.svc-sheet__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    min-width: 0;
}
.svc-sheet__chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sheet-accent-soft);
    color: var(--sheet-accent-dark);
    font-size: .76rem;
    font-weight: 700;
}
/* CTA：低調小按鈕（不搶眼），有興趣者才點開新分頁 */
.svc-sheet__cta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    padding: 8px 16px;
    white-space: nowrap;
    border-radius: 10px;
    background: var(--sheet-accent-dark);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    transition: filter .18s ease, transform .18s ease;
}
.svc-sheet__cta:hover { filter: brightness(.92); color: #fff; transform: translateY(-1px); }
/* 已在本服務：同位置改為低調「本服務」徽章（非按鈕、不可點） */
.svc-sheet__cta--self {
    background: #e8eaed;
    color: var(--text-muted);
    cursor: default;
    pointer-events: none;
    font-weight: 800;
    letter-spacing: .04em;
}
.svc-sheet__cta--self:hover { filter: none; color: var(--text-muted); transform: none; }
/* Desktop：置中、加寬、四角圓角的對話框 */
@media (min-width: 600px) {
    .svc-sheet {
        left: 50%;
        right: auto;
        bottom: auto;
        top: 50%;
        width: min(600px, 94vw);
        height: 450px;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 20px;
        box-shadow: 0 24px 70px rgba(15, 30, 40, .3);
        transform: translate(-50%, -46%);
        opacity: 0;
        transition: transform .3s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
    }
    .svc-sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
    .svc-sheet__grip { display: none; }
    .svc-sheet__brandbar { flex: 0 0 auto; padding: 14px 18px 12px 26px; }
    .svc-sheet__brandname { font-size: 1.12rem; }
    .svc-sheet__brandsub { font-size: .88rem; }
    .svc-sheet__tabs { flex: 0 0 auto; padding: 0 26px; gap: 26px; }
    .svc-sheet__tab { font-size: .95rem; }
    .svc-sheet__body {
        flex: 1 1 auto;
        min-height: 0;
        display: grid;
        grid-template-columns: 46% 1fr;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "img  text"
            "img  tags"
            "cta  cta";
        gap: 10px 20px;
        padding: 22px 26px 22px;
    }
    /* 讓 top / foot 的子元素直接進 grid 定位 */
    .svc-sheet__top,
    .svc-sheet__foot { display: contents; }
    .svc-sheet__img { grid-area: img; width: auto; align-self: stretch; min-height: 0; }
    .svc-sheet__text { grid-area: text; align-self: start; margin-top: 10px; }
    /* tags 放右欄、desc 下方 */
    .svc-sheet__chips { grid-area: tags; align-self: start; margin: 0; }
    /* 前往看看 獨立底部一列、跨整個寬度、靠右 */
    .svc-sheet__cta { grid-area: cta; justify-self: end; align-self: end; }
    .svc-sheet__metaphor { font-size: 1.15rem; }
    .svc-sheet__desc { font-size: .96rem; }
}

/* ── Value flow：把專業說清楚 ─────────────────────────────── */
.flow-section { padding: 4px 16px 36px; }
.flow-card {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    max-width: 1060px;
    margin: 0 auto;
    overflow: hidden;
}
.flow-intro {
    flex: 0 0 25%;
    max-width: 25%;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}
.flow-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
}
.flow-sub {
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: .92rem;
    line-height: 1.7;
}

.flow-row {
    flex: 1 1 75%;
    min-width: 0;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.flow-stage {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}
.flow-stage__label {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.flow-stage__label i { color: var(--primary); }
.flow-stage__cap {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}
.flow-arrow {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 1.3rem;
    opacity: .55;
}

/* Step 1 — mini brand-page mock */
.flow-mock {
    width: 152px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(42,181,160,.12);
    padding: 12px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.flow-mock__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-mid);
    color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.flow-mock__name { font-weight: 700; font-size: .9rem; color: var(--text); }
.flow-mock__chip {
    width: 100%;
    text-align: center;
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 0;
    border-radius: 8px;
}
.flow-mock__chip--service { background: var(--primary-light); color: var(--primary-dark); }
.flow-mock__chip--case    { background: #FFF3D6; color: #C9821A; }
.flow-mock__stars { color: #F5B301; font-size: .82rem; letter-spacing: 2px; }

/* Step 2 — trust pillars */
.flow-trust {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 210px;
}
.flow-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 2px solid;
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 700;
    font-size: .95rem;
    color: var(--text);
}
.flow-trust__ic {
    width: 27px; height: 27px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .82rem;
    flex: 0 0 auto;
}
.flow-trust__item--who  { border-color: var(--primary); }
.flow-trust__item--who  .flow-trust__ic { background: var(--primary); }
.flow-trust__item--what { border-color: #F5822E; }
.flow-trust__item--what .flow-trust__ic { background: #F5822E; }
.flow-trust__item--why  { border-color: #8B5CF6; }
.flow-trust__item--why  .flow-trust__ic { background: #8B5CF6; }

/* Step 3 — CTA actions */
.flow-cta-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 194px;
}
.flow-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 2px solid;
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: .95rem;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
}
.flow-cta i { font-size: 1rem; }
.flow-cta--book   { border-color: var(--primary); color: var(--primary-dark); }
.flow-cta--book i { color: var(--primary); }
.flow-cta--ask    { border-color: #2196F3; color: #1976D2; }
.flow-cta--ask i  { color: #2196F3; }
.flow-cta--quote  { border-color: #5B7CFA; color: #3F5BD8; }
.flow-cta--quote i { color: #5B7CFA; }

@media (max-width: 760px) {
    .flow-card { flex-direction: column; }
    .flow-intro {
        flex: 0 0 auto;
        max-width: none;
        padding: 12px 20px;
        text-align: center;
        gap: 5px;
    }
    .flow-title { font-size: 1.4rem; }
    .flow-sub { line-height: 1.4; }
    .flow-row { padding: 22px 18px; flex-direction: column; gap: 10px; }
    .flow-arrow { transform: rotate(90deg); }
    .flow-stage { width: 100%; }

    /* 2nd（建立信任）與 3rd（行動）插圖在手機版縮小一點 */
    .flow-trust, .flow-cta-list { max-width: 200px; }
    .flow-trust__item { gap: 8px; padding: 5px 11px; font-size: .78rem; }
    .flow-trust__ic { width: 20px; height: 20px; font-size: .66rem; }
    .flow-cta { gap: 7px; padding: 6px 11px; font-size: .78rem; }
    .flow-cta i { font-size: .82rem; }
}

/* ── Display helpers ──────────────────────────────────────── */
.d-none { display: none !important; }
@media (min-width: 768px)  { .d-md-inline { display: inline !important; } }
@media (min-width: 1200px) { .d-xl-block  { display: block  !important; } }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .main-card   { padding: 20px 14px; }
    .main-title h1 { font-size: 1.45rem; }
    .cta-button  { font-size: 1rem; padding: 15px 16px; }
    /* Footer addresses: left-aligned, stacked vertically — matches funnel-wizard / design dev */
    .footer-offices {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }
    .footer-office { text-align: left; width: 100%; }
    .hero-image-wrap img { max-height: 220px; }
    /* Footer: keep logo + copyright on one row, drop service links neatly below */
    .footer-bar { justify-content: center; gap: 6px 14px; }
    .footer-bar .footer-copy { flex: 0 1 auto; }
    .footer-services {
        order: 3;
        flex: 1 1 100%;
        position: static;
        transform: none;
        justify-content: center;
        gap: 10px 28px;
        margin-left: 0;
        margin-top: 12px;
        padding-top: 14px;
        border-top: 1px solid rgba(226, 232, 240, .9);
    }
    .svc-sheet__metaphor { font-size: .95rem; }
}
