@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --tmp-ink: #26282c;
    --tmp-ink-soft: #4f535a;
    --tmp-card: #ffffff;
    --tmp-line: #e7e3d8;
    --tmp-shell-bg: #fffdf0;
    --tmp-accent: #ed6e8f;
    --tmp-accent-dark: #d45f7c;
    --tmp-mint: #18ef90;
    --tmp-gold: #f0d900;
    --tmp-sky: #e2f7ef;
    --tmp-success: #1f8f56;
    --tmp-danger: #be3b3b;
    --tmp-shadow-soft: 0 18px 50px rgba(38, 40, 44, 0.11);
    --tmp-shadow-card: 0 14px 30px rgba(38, 40, 44, 0.08);
}

.tmp-shell {
    font-family: 'Poppins', sans-serif;
    color: var(--tmp-ink);
    border-radius: 30px;
    border: 1px solid var(--tmp-line);
    padding: clamp(1.25rem, 2.4vw, 2.35rem);
    background:
        radial-gradient(1000px 420px at -10% -10%, rgba(24, 239, 144, 0.28), transparent 58%),
        radial-gradient(900px 380px at 110% 0%, rgba(237, 110, 143, 0.2), transparent 55%),
        linear-gradient(180deg, #fbfdfc 0%, var(--tmp-shell-bg) 100%);
    box-shadow: var(--tmp-shadow-soft);
    overflow: hidden;
}

.tmp-shell h1,
.tmp-shell h2,
.tmp-shell h3,
.tmp-shell h4 {
    font-family: 'Bree Serif', serif;
    letter-spacing: 0.01em;
}

.tmp-hero {
    margin-bottom: 1.35rem;
}

.tmp-hero-premium {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1rem;
    background: linear-gradient(135deg, #ffffff, #f8fcfb);
    border: 1px solid #efe8d8;
    border-radius: 24px;
    padding: 1.2rem;
    box-shadow: var(--tmp-shadow-card);
}

.tmp-hero-copy {
    display: grid;
    align-content: center;
}

.tmp-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.75rem;
    color: var(--tmp-ink-soft);
}

.tmp-hero h2 {
    font-family: 'Bree Serif', serif;
    font-size: clamp(1.8rem, 3.2vw, 2.9rem);
    line-height: 1.07;
    margin: 0.25rem 0 0.7rem;
}

.tmp-subtitle {
    margin: 0;
    color: var(--tmp-ink-soft);
    font-size: 0.98rem;
    max-width: 58ch;
}

.tmp-hero-visual {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(145deg, #fef3e7, #e9f9f2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem;
    min-height: 220px;
}

.tmp-hero-visual img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    animation: tmpFloat 4.8s ease-in-out infinite;
}

.tmp-kpi-grid {
    margin-top: 1.15rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.tmp-kpi-grid article {
    border: 1px solid #ece5d7;
    border-radius: 12px;
    padding: 0.75rem;
    background: #ffffff;
}

.tmp-kpi-grid strong {
    font-family: 'Bree Serif', serif;
    font-size: 1.1rem;
    display: block;
}

.tmp-kpi-grid span {
    color: var(--tmp-ink-soft);
    font-size: 0.8rem;
}

.tmp-feature-ribbon {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    margin: 1.2rem 0 1.5rem;
}

.tmp-feature-ribbon article {
    border: 1px solid #efe7d8;
    border-radius: 14px;
    padding: 0.95rem;
    background: #fff;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    align-items: center;
    box-shadow: var(--tmp-shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tmp-feature-ribbon article:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 28px rgba(11, 43, 38, 0.13);
}

.tmp-feature-ribbon img {
    width: 48px;
    height: 48px;
}

.tmp-feature-ribbon h3 {
    margin: 0;
    font-size: 0.95rem;
}

.tmp-feature-ribbon p {
    margin: 0.22rem 0 0;
    color: var(--tmp-ink-soft);
    font-size: 0.84rem;
}

.tmp-panel-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.25rem;
}

.tmp-panel-left,
.tmp-side-card,
.tmp-auth-box,
.tmp-practice-card,
.tmp-metric-card,
.tmp-empty-state {
    background: #fff;
    border: 1px solid #ece5d6;
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: var(--tmp-shadow-card);
}

.tmp-progress-wrap {
    margin-bottom: 1.2rem;
}

.tmp-progress-bar {
    background: #f3efe4;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

#tmp-progress-indicator {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tmp-mint), var(--tmp-accent));
    transition: width 0.35s ease;
}

.tmp-progress-steps {
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    font-size: 0.77rem;
}

.tmp-progress-steps li {
    color: #809792;
}

.tmp-progress-steps li.is-active {
    color: var(--tmp-ink);
    font-weight: 700;
}

.tmp-form h3 {
    margin: 0.2rem 0 1rem;
    font-size: 1.15rem;
}

.tmp-step {
    display: none;
    animation: tmpFadeUp 0.28s ease;
}

.tmp-step.is-active {
    display: block;
}

.tmp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tmp-grid.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tmp-form label,
.tmp-shell label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.tmp-shell input,
.tmp-shell select,
.tmp-shell textarea {
    border: 1px solid #e2dbcc;
    border-radius: 12px;
    padding: 0.82rem 0.9rem;
    font-size: 0.92rem;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tmp-shell input:focus,
.tmp-shell select:focus,
.tmp-shell textarea:focus {
    outline: none;
    border-color: #ed6e8f;
    box-shadow: 0 0 0 3px rgba(237, 110, 143, 0.15);
}

.tmp-consents {
    margin-top: 1.15rem;
    display: grid;
    gap: 0.65rem;
}

.tmp-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

.tmp-check input {
    margin-top: 0.2rem;
}

.tmp-actions {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.tmp-portal-logout-wrap {
    justify-content: flex-end;
    margin-top: 0.8rem;
}

.tmp-portal-access-card {
    margin-top: 1rem;
    border: 1px solid #dce8e5;
    border-radius: 18px;
    padding: 1rem;
    background: #fff;
    box-shadow: var(--tmp-shadow-card);
}

.tmp-portal-access-card h3 {
    margin: 0 0 0.7rem;
}

.tmp-btn {
    border: 0;
    border-radius: 12px;
    padding: 0.72rem 1rem;
    cursor: pointer;
    font-weight: 700;
    background: var(--tmp-ink);
    color: #fff;
    transition: transform 0.18s ease, filter 0.22s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tmp-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.tmp-btn-light {
    background: #e6efed;
    color: var(--tmp-ink);
}

.tmp-btn-accent {
    background: var(--tmp-accent);
}

.tmp-btn-accent:hover {
    background: var(--tmp-accent-dark);
}

.tmp-alert {
    margin-top: 0.7rem;
    display: none;
    border-radius: 10px;
    padding: 0.62rem 0.78rem;
    font-size: 0.86rem;
}

.tmp-alert.is-visible {
    display: block;
}

.tmp-alert.is-error {
    background: #ffefef;
    color: var(--tmp-danger);
}

.tmp-alert.is-success {
    background: #ebfaf1;
    color: var(--tmp-success);
}

.tmp-success {
    margin-top: 1.1rem;
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid #b9e8cf;
    background: linear-gradient(160deg, #f0fbf5, #e8f8f0);
}

.tmp-code-highlight {
    margin: 0.55rem 0 0.9rem;
    font-size: 0.95rem;
    color: #11403a;
}

.tmp-code-highlight strong {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.04em;
}

.tmp-side-card h4 {
    margin: 0.1rem 0 0.65rem;
}

.tmp-side-card ol,
.tmp-side-card ul {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.45rem;
}

.tmp-side-card-cta {
    background: linear-gradient(160deg, #26282c, #434851);
    color: #fff;
    border-color: transparent;
}

.tmp-side-card-cta p {
    margin: 0;
    color: #d7eeea;
}

.tmp-dashboard-shell .tmp-practice-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.tmp-practice-card {
    position: relative;
    overflow: hidden;
}

.tmp-practice-card::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237, 110, 143, 0.2), transparent 62%);
    pointer-events: none;
}

.tmp-practice-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.tmp-card-kicker {
    margin: 0;
    color: var(--tmp-ink-soft);
    font-size: 0.8rem;
}

.tmp-status-badge {
    border-radius: 999px;
    padding: 0.3rem 0.62rem;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-received,
.status-review {
    background: #f9f3ea;
    color: #69624f;
}

.status-shortlist,
.status-mediation {
    background: #ffe9ef;
    color: #a74f66;
}

.status-closed {
    background: #e8fff5;
    color: #147a4a;
}

.tmp-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.58rem;
}

.tmp-timeline li {
    border-left: 3px solid #d7e3df;
    padding-left: 0.64rem;
}

.tmp-timeline p,
.tmp-precheck-summary p {
    margin: 0.24rem 0;
}

.tmp-timeline small {
    color: #68807a;
}

.tmp-match-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.62rem;
}

.tmp-match-item {
    border: 1px solid #ece5d8;
    border-radius: 12px;
    padding: 0.7rem;
    background: linear-gradient(180deg, #ffffff, #f9fcfb);
}

.tmp-match-name {
    margin: 0;
    font-weight: 700;
}

.tmp-auth-box {
    max-width: 560px;
}

.tmp-empty-state {
    margin-top: 1rem;
    text-align: center;
}

.tmp-proposal-client-card {
    margin-top: 1rem;
    border: 1px solid #eddcc6;
    border-radius: 14px;
    background: linear-gradient(160deg, #fff7ea, #fffdfa);
    padding: 1rem;
}

.tmp-proposal-client-card h4 {
    margin: 0 0 0.45rem;
}

.tmp-proposal-name {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

@keyframes tmpFadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tmpFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 1120px) {
    .tmp-hero-premium,
    .tmp-panel-grid {
        grid-template-columns: 1fr;
    }

    .tmp-kpi-grid,
    .tmp-feature-ribbon,
    .tmp-match-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .tmp-shell {
        border-radius: 20px;
        padding: 0.95rem;
    }

    .tmp-grid,
    .tmp-grid.two-cols,
    .tmp-kpi-grid,
    .tmp-feature-ribbon,
    .tmp-match-grid,
    .tmp-progress-steps {
        grid-template-columns: 1fr;
    }

    .tmp-actions {
        flex-wrap: wrap;
    }

    .tmp-btn {
        flex: 1;
        min-width: 140px;
    }
}
