﻿:root {
    --ink: #211717;
    --muted: #756666;
    --paper: #fbfaf6;
    --panel: #ffffff;
    --line: #eadada;
    --teal: #b91c1c;
    --teal-dark: #7f1d1d;
    --coral: #dc2626;
    --gold: #b88731;
    --sage: #f8e8e8;
    --shadow: 0 20px 60px rgba(50, 20, 20, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 5vw;
    background: rgba(251, 250, 246, 0.92);
    border-bottom: 1px solid rgba(221, 228, 223, 0.8);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--coral));
    border-radius: 50%;
    font-size: 0.82rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #2d3a36;
    font-size: 0.96rem;
}

.site-nav a {
    transition: color 180ms ease;
}

.site-nav a:hover {
    color: var(--teal);
}

.nav-cta {
    padding: 10px 16px;
    color: #fff;
    background: var(--teal);
    border-radius: 999px;
}

.site-nav .nav-cta:hover {
    color: #fff;
    background: var(--teal-dark);
}

.legal-nav {
    gap: 18px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: clamp(560px, 82svh, 780px);
    padding: 80px 5vw 74px;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(90deg, rgba(251, 250, 246, 0.96) 0%, rgba(251, 250, 246, 0.84) 35%, rgba(251, 250, 246, 0.12) 72%), url("/assets/img/hero-consultation.png");
    background-size: cover;
    background-position: center right;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-content {
    width: min(660px, 100%);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--coral);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(3.4rem, 8vw, 7.4rem);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 620px;
    color: #31403b;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    color: #fff;
    background: var(--teal);
}

.button.primary:hover {
    background: var(--teal-dark);
}

.button.secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--line);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.hero-stats div {
    min-width: 128px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(221, 228, 223, 0.85);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(50, 20, 20, 0.08);
}

.hero-stats dt {
    font-size: 1.45rem;
    font-weight: 900;
}

.hero-stats dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.intro-band {
    padding: 28px 5vw;
    background: var(--ink);
    color: #fff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 36px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.intro-grid p {
    margin: 0;
}

.agent-section {
    padding-bottom: 58px;
}

.agent-profile {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    gap: 42px;
    align-items: stretch;
    margin-bottom: 22px;
}

.agent-profile > div:first-child {
    align-self: center;
}

.agent-profile p {
    color: var(--muted);
}

.agent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.agent-card {
    display: grid;
    gap: 14px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.agent-avatar {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--coral));
    border-radius: 50%;
    font-weight: 950;
}

.agent-card h3,
.agent-card p {
    margin-bottom: 0;
}

.agent-card dl {
    display: grid;
    gap: 10px;
    margin: 10px 0 0;
}

.agent-card dl div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.agent-card dt {
    color: var(--muted);
    font-size: 0.88rem;
}

.agent-card dd {
    margin: 0;
    font-weight: 800;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.trust-grid article {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 32px rgba(50, 20, 20, 0.06);
}

.trust-grid svg {
    color: var(--teal);
    margin-bottom: 16px;
}

.trust-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.section,
.contact-section {
    width: min(1180px, 90vw);
    margin: 0 auto;
    padding: 92px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.assessment {
    padding-bottom: 54px;
}

.assessment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.assessment-card {
    appearance: none;
    width: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 12px;
    min-height: 210px;
    padding: 22px;
    text-align: left;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    box-shadow: 0 10px 32px rgba(50, 20, 20, 0.06);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.assessment-card:hover,
.assessment-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(201, 92, 66, 0.46);
    box-shadow: 0 18px 44px rgba(50, 20, 20, 0.11);
}

.assessment-card svg {
    color: var(--teal);
    width: 28px;
    height: 28px;
    stroke-width: 2.2;
}

.assessment-card strong {
    font-size: 1.15rem;
    line-height: 1.35;
}

.assessment-card span {
    color: var(--muted);
}

.funnel {
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.funnel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.funnel-grid article {
    padding: 26px;
    color: #fff;
    background: var(--ink);
    border-radius: var(--radius);
}

.funnel-grid span {
    color: #f4c874;
    font-weight: 950;
}

.funnel-grid p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
}

.premium-calculator {
    padding-top: 46px;
}

.calculator-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 360px;
    gap: 22px;
    align-items: stretch;
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 32px rgba(50, 20, 20, 0.06);
}

.calculator-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.calculator-form input,
.calculator-form select {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff8f6;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
}

.calculator-result {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 26px;
    color: #fff;
    background: var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.calculator-result span {
    color: #f0c2ba;
    font-weight: 900;
}

.calculator-result strong {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.calculator-result p,
.calculator-result small {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.calculator-result .button {
    width: 100%;
    margin-top: 4px;
}

.pathways {
    padding-bottom: 46px;
}

.pathway-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pathway-item {
    appearance: none;
    width: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 12px;
    min-height: 210px;
    padding: 22px;
    text-align: left;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    cursor: pointer;
    box-shadow: 0 10px 32px rgba(50, 20, 20, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pathway-item:hover,
.pathway-item:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(10, 124, 117, 0.45);
    box-shadow: 0 18px 44px rgba(50, 20, 20, 0.1);
}

.pathway-item svg {
    color: var(--coral);
    width: 28px;
    height: 28px;
    stroke-width: 2.2;
}

.pathway-item span {
    font-size: 1.14rem;
    font-weight: 900;
    line-height: 1.35;
}

.pathway-item small {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.section-heading p:last-child,
.split p {
    color: var(--muted);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-button {
    padding: 10px 16px;
    color: #31403b;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.filter-button.is-active {
    color: #fff;
    background: var(--coral);
    border-color: var(--coral);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 410px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 32px rgba(50, 20, 20, 0.06);
}

.product-card[hidden] {
    display: none;
}

.product-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 900;
}

.product-card p {
    color: var(--muted);
}

.product-card ul {
    display: grid;
    gap: 9px;
    margin: 10px 0 24px;
    padding-left: 18px;
}

.product-card li::marker {
    color: var(--gold);
}

.product-footer {
    display: grid;
    gap: 14px;
    margin-top: auto;
}

.product-card small {
    color: #7b8782;
    font-size: 0.78rem;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    color: var(--teal);
    font-weight: 900;
}

.comparison {
    padding-top: 40px;
}

.matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.matrix article {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.aia-official {
    padding-top: 40px;
}

.aia-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.aia-grid article {
    display: grid;
    gap: 12px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 32px rgba(50, 20, 20, 0.06);
}

.aia-grid svg {
    color: var(--teal);
}

.aia-grid p {
    margin-bottom: 4px;
    color: var(--muted);
}

.aia-grid a {
    margin-top: auto;
    color: var(--teal);
    font-weight: 900;
}

.matrix svg {
    color: var(--coral);
    margin-bottom: 18px;
}

.matrix p,
.faq-list p {
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.risk-list {
    display: grid;
    gap: 14px;
}

.risk-list div {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--sage);
    border: 1px solid #d4e3d9;
    border-radius: var(--radius);
    font-weight: 800;
}

.risk-list svg {
    flex: 0 0 auto;
    color: var(--teal);
}

.process {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.steps article {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.steps span {
    color: var(--gold);
    font-weight: 900;
}

.steps p {
    color: var(--muted);
}

.faq {
    padding-top: 34px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.faq-list summary {
    padding: 18px 20px;
    font-weight: 900;
    cursor: pointer;
}

.faq-list p {
    margin: 0;
    padding: 0 20px 20px;
}

.contact-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 54px;
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: 110px;
}

.contact-copy p {
    color: var(--muted);
}

.contact-promise {
    display: grid;
    gap: 10px;
    margin: 22px 0 26px;
}

.contact-promise div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--sage);
    border: 1px solid #d4e3d9;
    border-radius: var(--radius);
    font-weight: 800;
}

.contact-promise svg {
    flex: 0 0 auto;
    color: var(--teal);
}

.contact-methods {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.contact-methods a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--teal);
    font-weight: 800;
}

.lead-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.lead-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fbfcfa;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
}

.lead-form textarea {
    resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: 3px solid rgba(10, 124, 117, 0.14);
    border-color: var(--teal);
}

.full {
    grid-column: 1 / -1;
}

.consent {
    grid-template-columns: auto 1fr;
    align-items: start;
    color: #42504c;
    font-weight: 600;
}

.consent input {
    width: 18px;
    min-height: 18px;
    margin-top: 5px;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-status {
    min-height: 24px;
    margin: 0;
    color: var(--teal);
    font-weight: 800;
}

.form-status.is-error {
    color: #b33e2d;
}

.sticky-contact {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 35;
    display: grid;
    gap: 10px;
}

.sticky-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 16px;
    color: #fff;
    background: var(--teal);
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(50, 20, 20, 0.2);
    font-weight: 900;
}

.sticky-contact a:last-child {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
}

.site-footer {
    display: grid;
    gap: 10px;
    padding: 34px 5vw;
    color: rgba(255, 255, 255, 0.78);
    background: var(--ink);
    font-size: 0.9rem;
}

.site-footer p {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.legal-page {
    width: min(900px, 90vw);
    margin: 0 auto;
    padding: 86px 0;
}

.legal-page h1 {
    margin-bottom: 22px;
    font-size: clamp(2.6rem, 6vw, 5rem);
}

.legal-page section {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.legal-page h2 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.legal-page p {
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: #fff;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .assessment-grid,
    .pathway-grid,
    .matrix,
    .aia-grid,
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: grid;
    }

    .site-nav {
        position: fixed;
        inset: 72px 0 auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px 5vw 24px;
        background: rgba(251, 250, 246, 0.98);
        border-bottom: 1px solid var(--line);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 14px 0;
    }

    .nav-cta {
        display: inline-flex;
        justify-content: center;
        margin-top: 8px;
        padding: 12px 16px;
    }

    .hero {
        min-height: auto;
        padding-top: 66px;
    }

    .hero-media {
        background-image: linear-gradient(180deg, rgba(251, 250, 246, 0.97) 0%, rgba(251, 250, 246, 0.86) 44%, rgba(251, 250, 246, 0.2) 100%), url("/assets/img/hero-consultation.png");
        background-position: 63% center;
    }

    .intro-grid,
    .agent-profile,
    .calculator-panel,
    .split,
    .contact-section,
    .steps,
    .assessment-grid,
    .funnel-grid,
    .pathway-grid,
    .matrix,
    .aia-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .contact-copy {
        position: static;
    }

    .lead-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .calculator-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

@media (max-width: 620px) {
    body {
        padding-bottom: 76px;
    }

    .site-header {
        padding: 0 18px;
    }

    .brand span:last-child {
        max-width: 148px;
        white-space: normal;
        line-height: 1.1;
    }

    .section,
    .contact-section {
        width: min(100% - 32px, 1180px);
        padding: 68px 0;
    }

    .hero {
        padding: 54px 18px 58px;
    }

    .hero-actions,
    .agent-actions,
    .product-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .button,
    .agent-actions .button {
        width: 100%;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
    }

    .filter-button {
        flex: 0 0 auto;
    }

    .product-card {
        min-height: auto;
    }

    .sticky-contact {
        right: 0;
        bottom: 0;
        left: 0;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(251, 250, 246, 0.96);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(14px);
    }

    .sticky-contact a {
        min-height: 50px;
        border-radius: 999px;
        box-shadow: none;
    }
}

