/* Thank-you wall — /courses/thank-you
   Uses the site's tokens but lets --accent lead: this is the one page whose job
   is gratitude, not navigation. */

.ty-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px 64px;
    font-family: var(--font-family);
}

/* ── Hero ── */
.ty-hero {
    text-align: center;
    padding: 56px 20px 40px;
    position: relative;
}
.ty-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 260px;
    background: radial-gradient(58% 120% at 50% 0%, var(--accent-lighter, #FFFBEB) 0%, transparent 68%);
    pointer-events: none;
    z-index: -1;
}
.ty-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-hover, #B45309);
}
.ty-h {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--gray-900);
    margin: 12px 0;
    text-wrap: balance;
}
.ty-p {
    color: var(--gray-700);
    font-size: 15.5px;
    line-height: var(--leading-relaxed, 1.7);
    max-width: 58ch;
    margin: 0 auto;
}

.ty-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}
.ty-stat {
    padding: 4px 28px;
    border-right: 1px solid var(--border, #E5E7EB);
}
.ty-stat:last-child { border-right: 0; }
.ty-stat-n {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--gray-900);
    font-variant-numeric: tabular-nums;
}
.ty-stat-l { font-size: 11.5px; font-weight: 600; color: var(--gray-500); }

/* ── Wall ── */
.ty-wall-wrap { margin-top: 14px; }
.ty-wall-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ty-wall-head h2 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin: 0; }
.ty-wall-note { font-size: 12px; color: var(--gray-500); }

.ty-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
    gap: 13px;
}
.ty-card {
    border: 1px solid var(--border, #E5E7EB);
    border-radius: var(--radius-lg, 12px);
    padding: 15px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ty-card-top { display: flex; align-items: center; gap: 10px; }
.ty-av {
    width: 36px; height: 36px;
    border-radius: 50%;
    flex: 0 0 auto;
    object-fit: cover;
}
.ty-av-ph {
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
}
.ty-who { display: flex; flex-direction: column; min-width: 0; }
.ty-name { font-weight: 700; font-size: 14px; color: var(--gray-900); line-height: 1.25; }
a.ty-name-link {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}
a.ty-name-link:hover { color: var(--primary); border-bottom-color: var(--primary); }
.ty-ext { font-size: 10px; color: var(--gray-400); vertical-align: super; margin-left: 2px; }
a.ty-name-link:hover .ty-ext { color: var(--primary); }
.ty-when { font-size: 11.5px; color: var(--gray-500); }
.ty-amt {
    margin-left: auto;
    font-weight: 800;
    font-size: 13.5px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--accent-hover, #B45309);
    background: var(--accent-light, #FEF3C7);
    border-radius: 9999px;
    padding: 3px 10px;
}
.ty-msg {
    font-size: 13px;
    line-height: 1.55;
    color: var(--gray-700);
    font-style: italic;
    margin: 0;
}

.ty-empty {
    text-align: center;
    padding: 46px 20px;
    color: var(--gray-500);
    border: 1px dashed var(--border, #E5E7EB);
    border-radius: var(--radius-lg, 12px);
}
.ty-empty i { font-size: 22px; color: var(--accent); display: block; margin-bottom: 10px; }
.ty-empty p { margin: 0; font-size: 14px; }

/* ── CTA with the two QR codes ── */
.ty-cta {
    margin-top: 34px;
    padding: 28px 20px;
    text-align: center;
    border: 1px dashed var(--border, #E5E7EB);
    border-radius: var(--radius-xl, 16px);
    background: var(--gray-50, #F9FAFB);
}
.ty-cta h3 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin: 0 0 7px; }
.ty-cta p { font-size: 13.5px; color: var(--gray-500); max-width: 48ch; margin: 0 auto 16px; }

.ty-cta-host { position: relative; display: inline-flex; }
.ty-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 0;
    border-radius: var(--radius-md, 8px);
    background: var(--accent);
    color: #231400;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: filter var(--transition-fast), transform var(--transition-fast);
}
.ty-cta-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ty-cta-btn:focus-visible { outline: 2px solid var(--gray-900); outline-offset: 2px; }

.ty-qrpop {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px) scale(.97);
    transform-origin: bottom center;
    width: 300px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border, #E5E7EB);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .22);
    opacity: 0;
    visibility: hidden;
    z-index: 30;
    transition: opacity 170ms ease, transform 170ms ease, visibility 170ms;
}
.ty-qrpop::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--white);
}
.ty-cta-host:hover .ty-qrpop,
.ty-cta-host:focus-within .ty-qrpop,
.ty-qrpop.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}
.ty-qrpop-h {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 11px;
}
.ty-qrpop-row { display: flex; gap: 11px; }
.ty-qrpop-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}
.ty-qrpop-tile {
    width: 100%;
    aspect-ratio: 1;
    background: var(--white);
    border: 2px solid var(--border, #E5E7EB);
    border-radius: var(--radius-md, 8px);
    padding: 6px;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.ty-qrpop-tile img { width: 100%; height: 100%; display: block; }
.ty-qrpop-item:hover .ty-qrpop-tile { transform: translateY(-2px); }
.ty-qrpop-coffee:hover .ty-qrpop-tile { border-color: var(--accent); }
.ty-qrpop-paypal:hover .ty-qrpop-tile { border-color: #0070BA; }
.ty-qrpop-item:focus-visible .ty-qrpop-tile { outline: 2px solid var(--primary); outline-offset: 2px; }
.ty-qrpop-cap { font-size: 12px; font-weight: 700; color: var(--gray-900); }
.ty-qrpop-foot {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--border, #E5E7EB);
    font-size: 11px;
    color: var(--gray-500);
}

@media (max-width: 560px) {
    .ty-stat { border-right: 0; }
    .ty-qrpop { width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
    .ty-cta-btn, .ty-qrpop, .ty-qrpop-tile, a.ty-name-link { transition: none; }
    .ty-cta-btn:hover, .ty-qrpop-item:hover .ty-qrpop-tile { transform: none; }
}

/* ── Personal acknowledgement ─────────────────────────────────────────────
   Shown once, immediately after someone confirms, then never again. It is the
   emotional payload of the whole flow, so it gets the warmest treatment on the
   page and takes the h1 while it is present. */
.ty-personal {
    margin: 34px auto 0;
    max-width: 660px;
    padding: 36px 32px 30px;
    text-align: center;
    border-radius: var(--radius-xl, 16px);
    border: 1px solid var(--accent-light, #FEF3C7);
    background:
        radial-gradient(70% 130% at 50% 0%, var(--accent-lighter, #FFFBEB) 0%, var(--white) 70%),
        var(--white);
    box-shadow: 0 18px 44px rgba(217, 119, 6, .10);
    animation: tyRise 520ms cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes tyRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
.ty-personal-mark {
    width: 58px; height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent-light, #FEF3C7);
    color: var(--accent-hover, #B45309);
    font-size: 22px;
    animation: tyBeat 1.6s ease-in-out 400ms 2;
}
@keyframes tyBeat {
    0%, 100% { transform: scale(1); }
    18%      { transform: scale(1.13); }
    36%      { transform: scale(1); }
}
.ty-personal-h {
    font-size: clamp(25px, 3.6vw, 34px);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--gray-900);
    margin: 0 0 6px;
    text-wrap: balance;
}
.ty-personal-amt {
    font-size: 15px;
    color: var(--gray-700);
    margin: 0 0 20px;
}
.ty-personal-amt strong {
    color: var(--accent-hover, #B45309);
    background: var(--accent-light, #FEF3C7);
    border-radius: 9999px;
    padding: 3px 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ty-personal-body {
    text-align: left;
    max-width: 56ch;
    margin: 0 auto;
}
.ty-personal-body p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--gray-700);
    margin: 0 0 14px;
}
.ty-personal-sign {
    font-weight: 600;
    color: var(--gray-900) !important;
    margin-bottom: 0 !important;
}
.ty-personal-note {
    margin: 22px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--accent-light, #FEF3C7);
    font-size: 12.5px;
    color: var(--gray-500);
    max-width: 52ch;
}
.ty-personal-note i { color: var(--accent); margin-right: 4px; }

@media (max-width: 560px) {
    .ty-personal { padding: 28px 20px 24px; margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .ty-personal, .ty-personal-mark { animation: none; }
}
