/* TRUEDAN Proposal Homepage — Modern Enterprise SaaS */

:root {
    --hp-bg: #f3f6f8;
    --hp-ink: #0c1b24;
    --hp-muted: #5b6b75;
    --hp-line: #d5dee4;
    --hp-card: #ffffff;
    --hp-accent: #0f6b5c;
    --hp-accent-soft: #e6f3ef;
    --hp-hero-bg:
        radial-gradient(1200px 480px at 12% -10%, rgba(15, 107, 92, 0.16), transparent 55%),
        radial-gradient(900px 420px at 88% 0%, rgba(12, 27, 36, 0.08), transparent 50%),
        linear-gradient(180deg, #eef5f3 0%, #f3f6f8 55%, #f3f6f8 100%);
    --hp-shadow: 0 18px 40px rgba(12, 27, 36, 0.07);
}

.hp-body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--hp-bg);
    color: var(--hp-ink);
}

.hp-shell {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

/* Nav */
.hp-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hp-line);
}

.hp-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.hp-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--hp-ink);
}

.hp-nav-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    background: var(--hp-ink);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.04em;
}

.hp-nav-logo {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.hp-footer-logo {
    height: 52px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.hp-chip-link {
    display: inline-block;
    border: 1px solid var(--hp-line);
    background: #fff;
    color: var(--hp-ink);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.hp-chip-link:hover {
    border-color: var(--hp-accent);
    color: var(--hp-accent);
    background: var(--hp-accent-soft);
}

.hp-nav-wordmark {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 0.95rem;
}

.hp-nav-wordmark em {
    font-style: normal;
    color: var(--hp-accent);
}

.hp-nav-links {
    gap: 1.1rem;
}

.hp-nav-links a {
    color: var(--hp-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.hp-nav-links a:hover {
    color: var(--hp-accent);
}

.hp-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hp-nav-user {
    font-size: 0.8rem;
    color: var(--hp-muted);
}

.hp-btn-primary {
    background: var(--hp-ink);
    border-color: var(--hp-ink);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
}

.hp-btn-primary:hover {
    background: var(--hp-accent);
    border-color: var(--hp-accent);
    color: #fff;
}

.hp-btn-ghost {
    background: transparent;
    border: 1px solid var(--hp-line);
    color: var(--hp-ink);
    font-weight: 650;
    border-radius: 999px;
    padding: 0.55rem 1rem;
}

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

/* Hero */
.hp-hero {
    background: var(--hp-hero-bg);
    border-bottom: 1px solid var(--hp-line);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.75rem, 6vw, 4rem);
}

.hp-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hp-accent);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 107, 92, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1.1rem;
}

.hp-brand {
    font-weight: 800;
    letter-spacing: -0.045em;
    font-size: clamp(2.4rem, 7vw, 4rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.hp-brand span {
    color: var(--hp-accent);
}

.hp-tagline {
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    font-weight: 650;
    color: var(--hp-ink);
    margin-bottom: 1rem;
    max-width: 40rem;
}

.hp-lead {
    color: var(--hp-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 42rem;
    margin-bottom: 1.75rem;
}

.hp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

/* Sections */
.hp-section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.hp-section--muted {
    background: #eaf0f2;
    border-block: 1px solid var(--hp-line);
}

.hp-section-head {
    margin-bottom: 1.75rem;
    max-width: 40rem;
}

.hp-section-head h2 {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin-bottom: 0.4rem;
}

.hp-section-head p {
    color: var(--hp-muted);
    margin: 0;
    line-height: 1.6;
}

/* AI cards */
.hp-ai-card,
.hp-pillar,
.hp-tech-card {
    background: var(--hp-card);
    border: 1px solid var(--hp-line);
    border-radius: 1.15rem;
    box-shadow: var(--hp-shadow);
    height: 100%;
}

.hp-ai-card {
    padding: 1.4rem 1.35rem 1.5rem;
}

.hp-ai-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: grid;
    place-items: center;
    background: var(--hp-accent-soft);
    color: var(--hp-accent);
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
}

.hp-ai-card h3,
.hp-pillar h3,
.hp-tech-card h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
}

.hp-ai-value {
    color: var(--hp-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.hp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hp-chips span {
    font-size: 0.72rem;
    font-weight: 650;
    color: #334155;
    background: #f8fafb;
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
}

.hp-chips .hp-chip-link {
    font-size: 0.72rem;
    font-weight: 650;
    color: #334155;
    background: #f8fafb;
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.3;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.hp-chips .hp-chip-link:hover {
    border-color: var(--hp-accent);
    color: var(--hp-accent);
    background: var(--hp-accent-soft);
}

.hp-chips--dense span {
    background: #fff;
}

/* Pillars */
.hp-pillar {
    padding: 1.25rem 1.2rem 1.35rem;
}

.hp-pillar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.7rem;
}

.hp-pillar-num {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--hp-accent);
}

.hp-pillar-top i {
    font-size: 1.2rem;
    color: var(--hp-ink);
    opacity: 0.75;
}

/* Flow */
.hp-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.55rem;
    background: var(--hp-card);
    border: 1px solid var(--hp-line);
    border-radius: 1.25rem;
    padding: 1.15rem;
    box-shadow: var(--hp-shadow);
}

.hp-flow-step {
    flex: 1 1 140px;
    min-width: 130px;
    background: #f7faf9;
    border: 1px solid #d7e5e1;
    border-radius: 0.9rem;
    padding: 0.85rem 0.9rem;
}

.hp-flow-index {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--hp-accent);
    margin-bottom: 0.25rem;
}

.hp-flow-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

.hp-flow-arrow {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 1rem;
    padding: 0 0.1rem;
}

@media (max-width: 767.98px) {
    .hp-flow-arrow {
        display: none;
    }

    .hp-flow-step {
        flex: 1 1 100%;
    }

    .hp-nav-wordmark {
        display: none;
    }
}

/* Tech */
.hp-tech-card {
    padding: 1.25rem 1.2rem;
}

.hp-tech-note {
    margin-top: 1.25rem;
    margin-bottom: 0;
    color: var(--hp-muted);
    font-size: 0.88rem;
}

/* Footer */
.hp-footer {
    background: #0c1b24;
    color: #9db0bb;
    padding: 2.75rem 0;
    font-size: 0.9rem;
}

.hp-footer-brand {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}

.hp-footer h6 {
    color: #e8eef1;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.hp-footer a {
    color: #c5d3da;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.45rem;
}

.hp-footer a:hover {
    color: #fff;
}

.hp-footer-copy {
    color: #7f93a0;
}

/* ── Restored architecture tree (from legacy blueprint) ── */
/* 首頁架構樹：靜態載入，不依賴 Vite（僅 php artisan serve 也能有完整樣式） */

.arch-tree-section-heading {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.arch-visual-canvas {
    /* 連線：偏青灰、夠深，與網格區隔（對齊參考站「清清楚楚」的正交線） */
    --arch-viz-line: #5c6f88;
    --arch-viz-line-rail: #4a5f7a;
    --arch-viz-root-bg: #0a0e1a;
    --arch-viz-root-shadow: 0 18px 48px rgba(10, 14, 26, 0.38);
    --arch-viz-grid: rgba(148, 163, 184, 0.16);
    position: relative;
    border-radius: 16px;
    padding: 2.25rem 1.25rem 2.5rem;
    background-color: #f4f7fb;
    background-image:
        linear-gradient(var(--arch-viz-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--arch-viz-grid) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    overflow-x: auto;
}

/* 滿版寬度：與參考站相同，橫向主幹貫穿視窗，欄位區僅左右留邊距 */
.arch-visual-canvas--fullbleed {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-sizing: border-box;
}

/* ── AIAddress 式樹狀圖：連線由 li 幾何自動算出，橫線長度＝兄弟節點間距 ── */
.arch-bp-tree-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem clamp(0.75rem, 2.5vw, 2.5rem) 2.5rem;
    text-align: center;
}

.arch-bp-tree {
    --arch-bp-line: #94a3b8;
    display: inline-block;
    vertical-align: top;
    min-width: max-content;
    text-align: center;
}

.arch-bp-tree ul {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 2.5rem 0 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    transition: opacity 0.35s ease;
}

.arch-bp-tree li {
    position: relative;
    list-style: none;
    text-align: center;
    padding: 2.5rem 0.5rem 0;
    flex: 1 1 auto;
    min-width: min-content;
    transition: opacity 0.35s ease;
}

/* 兄弟間橫軌 + 垂線（與 AIAddress architecture 相同邏輯） */
.arch-bp-tree li::before,
.arch-bp-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid var(--arch-bp-line);
    width: 50%;
    height: 2.5rem;
}

.arch-bp-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid var(--arch-bp-line);
}

.arch-bp-tree li:only-child::before,
.arch-bp-tree li:only-child::after {
    display: none;
}

.arch-bp-tree li:only-child {
    padding-top: 0;
}

.arch-bp-tree li:first-child::before,
.arch-bp-tree li:last-child::after {
    border: 0 none;
}

.arch-bp-tree li:last-child::before {
    border-right: 2px solid var(--arch-bp-line);
    border-radius: 0 5px 0 0;
}

.arch-bp-tree li:first-child::after {
    border-radius: 5px 0 0 0;
}

/* 父層 → 子層第一排連線 */
.arch-bp-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid var(--arch-bp-line);
    width: 0;
    height: 2.5rem;
    margin-left: -1px;
}

/* 根節點（單一 li）不畫上緣橫線 */
.arch-bp-tree > ul > li:only-child::before,
.arch-bp-tree > ul > li:only-child::after {
    display: none;
}

.arch-bp-tree > ul > li:only-child {
    padding-top: 0;
}

/* ── 節點外觀（對齊參考頁層級：root / hub pill / module / leaf）── */
.arch-bp-root {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 2.25rem;
    background: #0f172a;
    color: #fff;
    border-radius: 2.5rem;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.45);
    position: relative;
    z-index: 20;
    text-align: left;
}

.arch-bp-root-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.arch-bp-root-kicker {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 0.2rem;
}

.arch-bp-root-title {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.arch-bp-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.82rem;
    color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 10;
    white-space: nowrap;
}

.arch-bp-pillar--a .arch-bp-pill:hover { border-color: #6366f1; background: #eef2ff; }
.arch-bp-pillar--b .arch-bp-pill:hover { border-color: #14b8a6; background: #f0fdfa; }
.arch-bp-pillar--c .arch-bp-pill:hover { border-color: #3b82f6; background: #eff6ff; }
.arch-bp-pillar--d .arch-bp-pill:hover { border-color: #ec4899; background: #fdf2f8; }
.arch-bp-pillar--e .arch-bp-pill:hover { border-color: #f59e0b; background: #fffbeb; }

.arch-bp-module {
    display: inline-block;
    padding: 0.72rem 1.25rem;
    border-width: 1.5px;
    border-style: solid;
    border-radius: 1.15rem;
    font-weight: 800;
    font-size: 0.76rem;
    color: #334155;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    min-width: 148px;
    position: relative;
    z-index: 10;
}

.arch-bp-pillar--a .arch-bp-module {
    border-color: #c7d2fe;
    background: #eef2ff;
}

.arch-bp-pillar--b .arch-bp-module {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.arch-bp-pillar--c .arch-bp-module {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.arch-bp-pillar--d .arch-bp-module {
    border-color: #fbcfe8;
    background: #fdf2f8;
}

.arch-bp-pillar--e .arch-bp-module {
    border-color: #fde68a;
    background: #fffbeb;
}

.arch-bp-leaf {
    display: inline-block;
    padding: 0.55rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: #64748b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    min-width: 132px;
    max-width: 220px;
    position: relative;
    z-index: 10;
    line-height: 1.35;
}

.arch-bp-leaf strong {
    font-weight: 700;
    color: #334155;
}

.arch-bp-leaf-hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.62rem;
    font-weight: 500;
    color: #94a3b8;
}

.arch-section-title {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.arch-tech-list {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.arch-tech-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.arch-tech-list ul ul {
    margin-top: 0.35rem;
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid #e2e8f0;
}

.arch-tech-list li {
    padding: 0.2rem 0;
}

.arch-tech-list .arch-node-root {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
}

.arch-tech-list .arch-node-pillar {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e293b;
}

.arch-tech-list .arch-node-leaf {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .arch-visual-canvas {
        padding: 1.5rem 0.75rem 1.75rem;
    }
    .arch-visual-canvas--fullbleed {
        border-radius: 0;
    }

    .arch-bp-tree-wrap {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .arch-bp-tree li::before,
    .arch-bp-tree li::after,
    .arch-bp-tree ul ul::before {
        display: none !important;
    }

    .arch-bp-tree ul {
        flex-direction: column;
        align-items: stretch;
        padding-top: 1.25rem;
    }

    .arch-bp-tree li {
        flex: none;
        width: 100%;
        max-width: 100%;
        padding-top: 0.75rem;
        padding-left: 0;
        padding-right: 0;
    }

    .arch-bp-tree li:only-child {
        padding-top: 0;
    }

    .arch-bp-root {
        flex-direction: column;
        text-align: center;
        padding: 1rem 1.25rem;
        gap: 0.85rem;
    }

    .arch-bp-root-text {
        text-align: center;
    }

    .arch-bp-pill {
        white-space: normal;
        width: 100%;
        max-width: 100%;
    }

    .arch-bp-module {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .arch-bp-leaf {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
}

.arch-bp-pillar--f .arch-bp-pill:hover { border-color: #8b5cf6; background: #f5f3ff; }
.arch-bp-pillar--f .arch-bp-module { border-color: #ddd6fe; background: #f5f3ff; }
.arch-section-title { font-family: inherit; }

/* Demo enter buttons reset */
button.hp-enter-btn,
button.hp-chip-link,
button.hp-portal-link,
button.arch-bp-leaf-link,
button.hp-flow-link {
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    padding: 0;
    margin: 0;
}

button.hp-chip-link {
    border: 1px solid var(--hp-line);
    background: #fff;
    color: var(--hp-ink);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}
button.hp-chip-link:hover {
    border-color: var(--hp-accent);
    color: var(--hp-accent);
    background: var(--hp-accent-soft);
}

/* Portal — 功能入口 */
.hp-portal-group-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hp-ink);
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}

.hp-portal-card {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 1rem;
    padding: 1.1rem 1.15rem 1.2rem;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.hp-portal-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f6;
}

.hp-portal-card-head > i {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    background: var(--hp-accent-soft);
    color: var(--hp-accent);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.hp-portal-card-head h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--hp-ink);
    line-height: 1.3;
}

.hp-portal-card-head p {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.hp-portal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hp-portal-list--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.75rem;
}

.hp-portal-link,
a.hp-portal-link,
button.hp-portal-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-radius: 0.65rem;
    font-size: 0.98rem;
    font-weight: 650;
    color: #1e293b;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.hp-portal-link:hover,
a.hp-portal-link:hover,
button.hp-portal-link:hover {
    background: var(--hp-accent-soft);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--hp-accent);
}

.arch-bp-leaf-link,
a.arch-bp-leaf-link,
button.arch-bp-leaf-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: center;
    cursor: pointer;
}

.arch-bp-leaf:has(.arch-bp-leaf-link):hover,
.arch-bp-leaf:hover {
    border-color: var(--hp-accent);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.arch-bp-leaf-link strong { color: #1e40af; }

.hp-flow-link,
a.hp-flow-link,
button.hp-flow-link {
    display: inline;
    text-decoration: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.hp-flow-link:hover { color: var(--hp-accent); }

@media (max-width: 767.98px) {
    .hp-portal-list--grid {
        grid-template-columns: 1fr;
    }
    .hp-portal-card-head h4 { font-size: 1.05rem; }
    .hp-portal-link,
    a.hp-portal-link,
    button.hp-portal-link {
        font-size: 1rem;
        padding: 0.65rem 0.75rem;
    }
}

