/* Tooth Fairy page */
.tf-body { background: linear-gradient(180deg, #fff 0%, #fdf2f6 40%, #eef6fb 100%); }
.tf-page { max-width: none; margin: 0 auto; padding-left: clamp(16px, 4vw, 72px); padding-right: clamp(16px, 4vw, 72px); padding-bottom: 40px; position: relative; }
.tf-sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.tf-spark {
    position: fixed; font-size: 20px; transform: translate(-50%, -50%);
    animation: tfSpark 1.05s ease-out forwards; text-shadow: 0 0 6px rgba(255,255,255,.9);
}
@keyframes tfSpark {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(120deg); }
}

/* Hero */
.tf-hero { padding-top: 10px; }
.tf-hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.tf-hero h1 {
    font-family: 'Baloo 2', cursive; font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: 1.1;
    color: var(--blue); margin: 10px 0 14px;
}
.tf-lead { font-size: 1.15rem; line-height: 1.6; color: #374151; }
.tf-hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tf-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
    font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 1.1rem; text-decoration: none; border: 0; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.tf-btn:hover { transform: translateY(-2px); }
.tf-btn-call { background: linear-gradient(135deg, #E91E63, #f06292); color: #fff; box-shadow: 0 8px 20px rgba(233,30,99,.3); }
.tf-btn-ghost { background: #fff; color: var(--blue); border: 2px solid var(--pink); }

.tf-stage {
    position: relative; border-radius: 28px; overflow: hidden;
    background: radial-gradient(circle at 50% 40%, #fff 0%, #fce4ec 45%, #dcecf7 100%);
    box-shadow: 0 20px 50px rgba(30,77,107,.15); border: 4px solid #fff;
}
.tf-stage::before {
    content: '✦  ✧     ✦      ✧   ✦\A   ✧      ✦   ✧     ✦';
    white-space: pre; position: absolute; inset: 14px; color: #f8b4c4; font-size: 22px; line-height: 3.4;
    letter-spacing: 6px; opacity: .7; animation: tfTwinkle 3s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes tfTwinkle { from { opacity: .35; } to { opacity: .85; } }
#fairyModel, .tf-fallback-img {
    width: 100%; height: clamp(360px, 52vw, 540px); display: block; background: transparent;
    --poster-color: transparent; position: relative; cursor: grab;
}
.tf-fallback-img { object-fit: scale-down; padding: 20px; animation: tfFloat 3.5s ease-in-out infinite; cursor: pointer; }
@keyframes tfFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.tf-hop { animation: tfHop .6s ease; }
@keyframes tfHop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-18px) scale(1.03); } }
.tf-stage-hint {
    position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; margin: 0;
    font-weight: 600; color: var(--blue); font-size: .95rem;
}
.tf-loading { position: absolute; left: 20%; right: 20%; top: 50%; height: 6px; background: #fff; border-radius: 6px; overflow: hidden; }
.tf-loading span { display: block; height: 100%; width: 40%; background: #E91E63; animation: tfLoad 1.1s infinite ease-in-out; }
@keyframes tfLoad { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Sections */
.tf-section { margin-top: 48px; }
.tf-h2, .tf-card h2 { font-family: 'Baloo 2', cursive; color: var(--blue); }
.tf-h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.tf-center { text-align: center; color: #4b5563; }
.tf-card { background: #fff; border-radius: 22px; padding: 26px 28px; box-shadow: 0 10px 30px rgba(30,77,107,.08); border: 2px solid #fce4ec; }
.tf-card h2 { font-size: 1.5rem; margin-top: 0; }
.tf-card h2 i { color: #E91E63; margin-right: 6px; }
.tf-card ul { padding-left: 20px; line-height: 1.65; }
.tf-card li { margin-bottom: 6px; }
.tf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tf-alert { background: #fff7ed; border-left: 4px solid #fb923c; padding: 12px 14px; border-radius: 0 10px 10px 0; }
.tf-alert i { color: #ea580c; }

/* Call card */
.tf-call-card { display: flex; gap: 24px; align-items: flex-start; background: linear-gradient(135deg, #fff 0%, #fdf2f6 100%); }
.tf-call-icon {
    flex: 0 0 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
    background: #E91E63; color: #fff; font-size: 32px; animation: tfRing 2.4s ease-in-out infinite;
}
@keyframes tfRing { 0%,80%,100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(14deg); } 92% { transform: rotate(-10deg); } 96% { transform: rotate(8deg); } }
.tf-phone {
    display: inline-block; font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: #E91E63; text-decoration: none; letter-spacing: 1px; line-height: 1.1; margin-top: 4px;
}
.tf-phone-digits { margin: 0 0 10px; font-weight: 600; color: var(--blue); }
.tf-fine { font-size: .88rem; color: #6b7280; }

/* Certificate form */
.tf-form {
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: flex-end;
    margin: 18px auto 24px; max-width: 900px;
}
.tf-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--blue); font-size: .95rem; }
.tf-form input, .tf-form select {
    font: inherit; font-weight: 500; padding: 11px 14px; border: 2px solid #f8b4c4; border-radius: 12px; min-width: 200px; background: #fff;
}
.tf-form input:focus, .tf-form select:focus { outline: none; border-color: #E91E63; }

/* Certificate */
.tf-cert {
    max-width: 820px; margin: 0 auto; background: #fff; padding: 14px; border-radius: 18px;
    background-image: repeating-linear-gradient(45deg, #fce4ec 0 12px, #e3f0f8 12px 24px);
    box-shadow: 0 14px 40px rgba(30,77,107,.15);
}
.tf-cert-inner { background: #fffdf7; border: 3px dashed #E91E63; border-radius: 12px; padding: 30px 34px; text-align: center; }
.tf-cert-stars { color: #f6b400; font-size: 1.6rem; letter-spacing: 10px; }
.tf-cert-kicker { text-transform: uppercase; letter-spacing: 3px; font-weight: 700; font-size: .8rem; color: var(--blue); margin: 6px 0 0; }
.tf-cert-title { font-family: 'Baloo 2', cursive; font-size: clamp(2rem, 5vw, 3rem); color: #E91E63; margin: 0; line-height: 1.1; }
.tf-cert-line { font-size: 1.1rem; color: #374151; margin: 8px 0; }
.tf-cert-name {
    font-family: 'Dancing Script', cursive; font-size: clamp(2.4rem, 7vw, 3.8rem); color: var(--blue);
    margin: 0 auto; border-bottom: 2px solid #f8b4c4; display: inline-block; min-width: 60%; line-height: 1.3;
}
.tf-cert-note { font-size: .98rem; color: #4b5563; max-width: 560px; margin: 12px auto; }
.tf-cert-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 16px; }
.tf-cert-foot > div { display: flex; flex-direction: column; min-width: 150px; }
.tf-cert-sig, .tf-cert-date { font-family: 'Dancing Script', cursive; font-size: 1.6rem; color: #E91E63; border-bottom: 1px solid #9ca3af; padding: 0 8px; }
.tf-cert-date { font-family: 'Quicksand', sans-serif; font-size: 1rem; font-weight: 700; color: var(--blue); padding-bottom: 6px; }
.tf-cert-sub { font-size: .8rem; color: #6b7280; margin-top: 4px; }
.tf-cert-pig { width: 90px; height: auto; }
.tf-cert-from { margin: 14px 0 0; font-size: .85rem; color: #6b7280; }

/* FAQ */
.tf-faq { background: #fff; border-radius: 14px; padding: 14px 18px; margin: 10px auto; max-width: 900px; border: 2px solid #fce4ec; }
.tf-faq summary { font-weight: 700; color: var(--blue); cursor: pointer; }
.tf-faq p { margin: 10px 0 0; line-height: 1.6; color: #374151; }

/* CTA */
.tf-cta-card { display: flex; gap: 24px; align-items: center; }
.tf-cta-pig { width: 120px; height: auto; flex: 0 0 auto; }

@media (max-width: 860px) {
    .tf-hero-grid, .tf-two { grid-template-columns: 1fr; }
    .tf-hero-text { text-align: center; }
    .tf-hero-buttons { justify-content: center; }
    .tf-call-card, .tf-cta-card { flex-direction: column; align-items: center; text-align: center; }
    .tf-cert-inner { padding: 22px 16px; }
    .tf-cert-foot { flex-wrap: wrap; justify-content: center; }
    .tf-page { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .tf-fallback-img, .tf-call-icon, .tf-stage::before { animation: none; }
}

/* Print only the certificate */
@media print {
    @page { size: landscape; margin: 0.35in; }
    body.tf-body { background: #fff !important; padding: 0 !important; margin: 0 !important; }
    body.tf-body > *:not(main),
    body.tf-body main > *:not(#certificate),
    #certificate > *:not(.tf-cert) { display: none !important; }
    body.tf-body main.tf-page { padding: 0 !important; margin: 0 !important; max-width: none !important; }
    #certificate { margin: 0 !important; }
    .tf-cert { max-width: none; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; }
    .tf-cert-inner { padding: 22px 30px; }
}
