/* ──────────────────────────────────────────────────────────────────────────
   thank-you.css — shared styles for the post-action landing pages
   Used by:  thank-you.html (purchase confirmation)  and  download.html (trial)
   Built on the Planner V2 tokens defined in style.css (--teal, --green, --vio,
   --card, --line, --txt, --text-secondary). No other page imports this file.
   ────────────────────────────────────────────────────────────────────────── */

/* ─── Hero band ─────────────────────────────────────────────────────────── */
.ty-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    /* Top padding clears the fixed navbar (mirrors pages.css .page-header). */
    padding: 150px 20px 70px;
}

.ty-hero .container {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

/* Subtle drifting starfield, purely decorative. */
.ty-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ty-stars .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.4;
    animation: ty-twinkle 3s ease-in-out infinite;
}

.ty-stars .star:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.ty-stars .star:nth-child(2) { top: 32%; left: 86%; animation-delay: 0.8s; }
.ty-stars .star:nth-child(3) { top: 64%; left: 22%; animation-delay: 1.6s; }
.ty-stars .star:nth-child(4) { top: 78%; left: 74%; animation-delay: 0.4s; }
.ty-stars .star:nth-child(5) { top: 24%; left: 58%; animation-delay: 2.2s; }
.ty-stars .star:nth-child(6) { top: 70%; left: 44%; animation-delay: 1.2s; }

@keyframes ty-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.6); }
}

/* ─── Hero icon (animated) ──────────────────────────────────────────────── */
.ty-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ty-pop 0.6s cubic-bezier(.16, 1.3, .24, 1) both;
}

.ty-icon svg {
    width: 46px;
    height: 46px;
    stroke: #fff;
    stroke-width: 3.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ty-icon--success {
    background: linear-gradient(135deg, var(--green) 0%, var(--teal2) 100%);
    box-shadow: 0 0 60px rgba(89, 217, 142, 0.35);
}

/* The checkmark draws itself in. */
.ty-icon--success svg polyline {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: ty-draw 0.7s 0.3s ease-out forwards;
}

.ty-icon--download {
    background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
    box-shadow: 0 0 60px rgba(73, 198, 191, 0.35);
}

/* Gentle pulse hints the file is on its way. */
.ty-icon--download svg {
    animation: ty-bob 1.6s ease-in-out infinite;
}

@keyframes ty-pop {
    0%   { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

@keyframes ty-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes ty-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(3px); }
}

/* ─── Hero text ─────────────────────────────────────────────────────────── */
.ty-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.ty-title {
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--vio) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ty-message {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 auto 12px;
    max-width: 620px;
}

.ty-note {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 580px;
}

.ty-note a,
.ty-message a { color: var(--teal); text-decoration: none; }
.ty-note a:hover,
.ty-message a:hover { text-decoration: underline; }

/* Platform pill on the download page. */
.ty-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card-bg-flat);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.ty-badge svg { width: 16px; height: 16px; fill: currentColor; }

/* ─── Generic content section ───────────────────────────────────────────── */
.ty-section { padding: 64px 0; }
.ty-section.alt-bg { background: rgba(255, 255, 255, 0.015); border-block: 1px solid var(--line); }

.ty-section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.ty-section-head h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.ty-section-head p { color: var(--text-secondary); font-size: 16px; }

/* ─── "Get started" split: video + copy ────────────────────────────────── */
.ty-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto 56px;
}

.ty-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    background: #000;
}

.ty-video video,
.ty-video iframe { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }

.ty-split-copy h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.ty-split-copy p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }

/* ─── Resource cards ────────────────────────────────────────────────────── */
.ty-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
}

.ty-card {
    display: block;
    padding: 26px 24px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ty-card:hover {
    transform: translateY(-4px);
    border-color: rgba(73, 198, 191, 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.ty-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: rgba(73, 198, 191, 0.12);
    color: var(--teal);
}

.ty-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }

.ty-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.ty-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

.ty-card-more {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--teal);
}

/* ─── Soft upsell band (download page only) ─────────────────────────────── */
.ty-upsell {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 28px 32px;
    border-radius: 18px;
    border: 1px solid rgba(73, 198, 191, 0.35);
    background:
        radial-gradient(600px 200px at 0% 0%, rgba(73, 198, 191, 0.14), transparent 60%),
        var(--card-bg-flat);
}

.ty-upsell-text strong { display: block; font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.ty-upsell-text span { color: var(--text-secondary); font-size: 15px; }
.ty-upsell .btn-primary { white-space: nowrap; }

/* ─── Help strip ────────────────────────────────────────────────────────── */
.ty-help { text-align: center; padding: 8px 0 4px; }
.ty-help p { color: var(--text-secondary); font-size: 15px; }
.ty-help a { color: var(--teal); text-decoration: none; font-weight: 600; }
.ty-help a:hover { text-decoration: underline; }

/* Hero CTA row (purchase page primary actions). */
.ty-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
    .ty-split { grid-template-columns: 1fr; gap: 28px; }
    .ty-cards { grid-template-columns: 1fr; }
    .ty-upsell { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .ty-hero { padding-top: 128px; }
    .ty-title { font-size: 30px; }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .ty-icon, .ty-icon svg, .ty-icon--download svg, .ty-stars .star { animation: none; }
    .ty-icon--success svg polyline { stroke-dashoffset: 0; }
}
