/* =============================================================================
   tax-insights.css — Post-it style tax insight cards
   ============================================================================= */

/* ── Wrap & header ──────────────────────────────────────────────────────────── */

#ti-wrap {
    margin: 20px 0 4px;
}
@media (min-width: 768px) {
		#ti-wrap { margin: 15px auto 50px; width:calc(100% - 450px);}
}

.ti-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ti-header > span {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ti-header-icon {
    color: #ffc107;
    font-size: 15px;
}

.ti-header > small {
    font-size: 13px;
    color: #333;
}

/* ── Grid ───────────────────────────────────────────────────────────────────── */

.ti-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

@media (max-width: 580px) {
    .ti-grid { grid-template-columns: 1fr; }
}

/* ── Base card ──────────────────────────────────────────────────────────────── */

.ti-card {
    position: relative;
    background: var(--ti-bg, #fffde7);
    border-left: 4px solid var(--ti-accent, #ffc107);
    border-radius: 2px 6px 6px 2px;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.09);
    padding: 13px 15px 11px 15px;

    /* Subtle post-it rotation — alternates via nth-child */
    transform: rotate(var(--ti-rot, -0.3deg));
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.28s ease;

    /* Entrance animation */
    animation: ti-slide-in 0.28s ease both;
}

@keyframes ti-slide-in {
    from { opacity: 0; transform: rotate(var(--ti-rot, -0.3deg)) translateY(8px); }
    to   { opacity: 1; transform: rotate(var(--ti-rot, -0.3deg)) translateY(0); }
}

.ti-card:nth-child(even) { --ti-rot:  0.35deg; }
.ti-card:nth-child(odd)  { --ti-rot: -0.30deg; }

.ti-card:hover {
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 3px 5px 16px rgba(0, 0, 0, 0.14);
}

/* Dismiss animation */
.ti-card--out {
    opacity: 0 !important;
    transform: scale(0.94) !important;
}

/* ── Category colour tokens ─────────────────────────────────────────────────── */

.ti-card--saving     { --ti-accent: #4caf50; --ti-bg: #f2faf2; }
.ti-card--claim      { --ti-accent: #1e88e5; --ti-bg: #f0f7ff; }
.ti-card--obligation { --ti-accent: #fb8c00; --ti-bg: #fffbf0; }
.ti-card--warning    { --ti-accent: #e53935; --ti-bg: #fff6f5; }
.ti-card--tip        { --ti-accent: #f9a825; --ti-bg: #fffde7; }
.ti-card--promo      { --ti-accent: #d2165c; --ti-bg: #fff0f5; }

/* ── Dismiss button ─────────────────────────────────────────────────────────── */


/* ── Card content ───────────────────────────────────────────────────────────── */

.ti-inner {
    padding-right: 16px; /* clear dismiss button */
}

.ti-tag {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ti-accent, #ffc107);
    margin-bottom: 3px;
}

.ti-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.3;
}

.ti-body {
    font-size: 17px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 0;
}

.ti-body strong {
    color: #111;
}

/* ── Footer / CTA link ──────────────────────────────────────────────────────── */

.ti-footer {
    margin-top: 9px;
}

.ti-link {
    font-size: 11.5px;
    font-weight: 600;
    color: #1359b3;
    text-decoration: none;
    border-bottom: 1px solid #1359b3;
    padding-bottom: 1px;
    transition: color 0.14s, border-color 0.14s;
}

.ti-link:hover {
    color: #257ced;
    border-color: #257ced;
}

/* Promo links use brand pink */
.ti-link--promo {
    color: #d2165c;
    border-color: rgba(210, 22, 92, 0.3);
}

.ti-link--promo:hover {
    color: #a00e47;
    border-color: #d2165c;
}

/* ── Premium teaser — blurred cards + overlay CTA ──────────────────────────── */

.ti-teaser {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

/* The two fake blurred cards */
.ti-teaser__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

@media (max-width: 580px) {
    .ti-teaser__cards { grid-template-columns: 1fr; }
    .ti-teaser__cards .ti-card:last-child { display: none; }
}

.ti-card--blurred {
    animation: none !important;
    transform: none !important;
}

/* Overlay centred over the blurred cards */
.ti-teaser__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.ti-teaser__lock {
    font-size: 2.4rem;
    color: #d2165c;
    margin-bottom: 8px;
    line-height: 1;
}

.ti-teaser__headline {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.ti-teaser__sub {
    font-size: 13.5px;
    color: #555;
    max-width: 340px;
    margin: 0 auto 16px;
    line-height: 1.5;
}

.ti-teaser__cta {
    display: inline-block;
    background: #d2165c;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.15s;
    margin-bottom: 10px;
}

.ti-teaser__cta:hover {
    background: #a00e47;
    color: #fff;
}

.ti-teaser__signin {
    font-size: 12.5px;
    color: #777;
    margin: 0;
}

.ti-teaser__signin-link {
    color: #d2165c;
    text-decoration: underline;
    cursor: pointer;
}

/* ── Premium upgrade modal ──────────────────────────────────────────────────── */

#premium-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.premium-modal {
    position: relative;
    background: #fff;
    border-radius: 10px;
    max-width: 560px;
    width: 100%;
    padding: 32px 28px 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    text-align: center;
    animation: ti-slide-in 0.22s ease both;
}

.premium-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0;
}

.premium-modal__close:hover { color: #333; }

.premium-modal__icon {
    font-size: 2.6rem;
    color: #d2165c;
    margin-bottom: 10px;
}

.premium-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.premium-modal__body {
    font-size: 14px;
    color: #555;
    line-height: 1.55;
    margin: 0 0 16px;
}

.premium-modal__perks {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    display: inline-block;
}

.premium-modal__perks li {
    font-size: 13.5px;
    color: #333;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-modal__perks li i {
    color: #4caf50;
    font-size: 15px;
    flex-shrink: 0;
}

.premium-modal__cta {
    display: block;
    background: #d2165c;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: background 0.15s;
}

.premium-modal__cta:hover {
    background: #a00e47;
    color: #fff;
}

.premium-modal__note {
    font-size: 12.5px;
    color: #888;
    margin: 0;
}

.premium-modal__note a {
    color: #d2165c;
    text-decoration: underline;
}

/* ── Locked PDF button variant ──────────────────────────────────────────────── */

.btn-download-pdf--locked {
    opacity: 0.85;
    background: #444 !important;
    border-color: #444 !important;
		color: white;
    cursor: pointer;
}

.btn-download-pdf--locked:hover {
    background: #d2165c !important;
    border-color: #d2165c !important;
    opacity: 1;
}
