html, body { margin: 0; padding: 0; }
body { background: #f6ebf1; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

.pn-page {
    --pn-plum: #58293f;
    --pn-plum-deep: #411c2f;
    --pn-mauve: #a06c82;
    --pn-rose: #c99aae;
    --pn-blush: #f3dfe7;
    --pn-pale: #faf1f5;
    color: var(--pn-plum-deep);
    font-size: 15px;
    line-height: 1.6;
    max-width: 980px;
    margin: 24px auto;
    background: #fff;
    border-radius: 24px;
    padding: 12px 28px 28px;
    box-sizing: border-box;
    box-shadow: 0 2px 24px rgba(88, 41, 63, 0.08);
}

.pn-page h1, .pn-page h2, .pn-page h3, .pn-page h4 {
    color: var(--pn-plum);
    line-height: 1.25;
    margin: 0 0 12px;
}
.pn-page h1 { font-size: 30px; }
.pn-page h2 { font-size: 24px; padding-top: 8px; }
.pn-page h3 { font-size: 19px; margin-top: 24px; }
.pn-page h4 { font-size: 16px; margin-top: 0; }
.pn-page p { margin: 0 0 14px; }
.pn-page ul { margin: 0 0 14px; padding-left: 20px; }
.pn-page li { margin-bottom: 6px; }
.pn-page a { color: var(--pn-plum); }

/* Top bar */
.pn-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 4px 14px; border-bottom: 1px solid var(--pn-blush); flex-wrap: wrap;
}
.pn-topbar-logo img { height: 34px; display: block; }
.pn-topbar-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pn-topbar-phone { font-weight: 600; text-decoration: none; }

/* Buttons */
.pn-button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 10px 22px; border-radius: 999px;
    background: var(--pn-plum); color: #fff; border: none; cursor: pointer;
    font: inherit; font-weight: 600; text-decoration: none; font-size: 15px;
}
.pn-button:hover { background: var(--pn-plum-deep); }
.pn-page a.pn-button, .pn-page a.pn-button:visited { color: #fff; }
.pn-page a.pn-button-ghost, .pn-page a.pn-button-ghost:visited { color: var(--pn-plum); }
.pn-button-ghost { background: transparent; color: var(--pn-plum); box-shadow: inset 0 0 0 1.5px var(--pn-plum); }
.pn-button-ghost:hover { background: var(--pn-blush); }
.pn-button-small { min-height: 38px; padding: 6px 18px; font-size: 14px; }
.pn-button[disabled] { opacity: 0.6; cursor: default; }

/* Nav */
.pn-nav {
    display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 12px 4px;
    border-bottom: 1px solid var(--pn-blush);
}
.pn-nav a {
    padding: 10px 0; min-height: 44px; box-sizing: border-box;
    color: var(--pn-mauve); font-weight: 600; text-decoration: none;
}
.pn-nav a:hover { color: var(--pn-plum); text-decoration: underline; }

/* Hero */
.pn-hero {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
    padding: 32px 4px;
}
.pn-hero-logo { height: 84px; margin-bottom: 6px; }
.pn-hero-tagline { letter-spacing: 0.32em; font-size: 11px; color: var(--pn-mauve); margin-bottom: 18px; }
.pn-hero-sub { font-size: 17px; color: var(--pn-mauve); }
.pn-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pn-hero-photo img { width: 100%; border-radius: 20px; display: block; }

/* Stat band */
.pn-stat {
    background: var(--pn-plum); color: #fff; border-radius: 20px;
    padding: 32px 28px; text-align: center; margin: 8px 0 16px;
}
.pn-stat-number { font-size: 44px; font-weight: 700; margin: 0; color: var(--pn-rose); }
.pn-stat-text { font-size: 17px; max-width: 560px; margin: 8px auto 0; color: #fdf4f7; }

/* Sections */
.pn-section { padding: 28px 4px; border-top: 1px solid var(--pn-blush); }
.pn-section-lede { font-size: 17px; color: var(--pn-mauve); }
.pn-rabbinic { font-style: italic; color: var(--pn-mauve); }

/* Team */
.pn-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 28px; }
.pn-team h4 { color: var(--pn-mauve); margin-top: 16px; }
.pn-team ul { list-style: none; padding: 0; }
.pn-team li { padding: 6px 0; border-bottom: 1px solid var(--pn-blush); }

/* Education panels */
.pn-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.pn-panel { background: var(--pn-pale); border: 1px solid var(--pn-blush); border-radius: 16px; padding: 20px; }
.pn-panel-note { font-style: italic; font-size: 13px; color: var(--pn-mauve); }
.pn-reach-out {
    background: var(--pn-blush); border-radius: 16px; padding: 20px 22px; margin: 4px 0 8px;
}
.pn-reach-out p { margin: 0; font-size: 16px; }

/* Topics */
.pn-topic { border: 1px solid var(--pn-blush); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.pn-topic summary {
    padding: 16px 18px; min-height: 44px; box-sizing: border-box;
    font-weight: 600; color: var(--pn-plum); cursor: pointer; list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pn-topic summary::after { content: "+"; font-size: 20px; color: var(--pn-rose); }
.pn-topic[open] summary::after { content: "-"; }
.pn-topic summary:hover { background: var(--pn-pale); }
.pn-topic-body { padding: 2px 18px 16px; }
.pn-topic-signs-label { font-weight: 600; margin-bottom: 6px; }

.pn-crisis {
    border: 1.5px solid var(--pn-rose); background: var(--pn-pale);
    border-radius: 14px; padding: 16px 18px; margin-top: 18px;
}
.pn-crisis p { margin: 0; font-size: 14px; }

/* Flip cards */
.pn-flip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.pn-flip { perspective: 900px; background: none; border: none; padding: 0; cursor: pointer; font: inherit; text-align: left; min-height: 210px; }
.pn-flip-inner {
    position: relative; display: block; width: 100%; height: 100%; min-height: 210px;
    transform-style: preserve-3d; transition: transform 0.45s ease;
}
.pn-flip.is-flipped .pn-flip-inner { transform: rotateY(180deg); }
.pn-flip-face {
    position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: 16px; padding: 18px; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 8px; overflow: auto;
}
.pn-flip-front { background: var(--pn-plum); color: #fdf4f7; justify-content: center; text-align: center; align-items: center; }
.pn-flip-front .pn-flip-title { color: #fff; }
.pn-flip-back { background: var(--pn-pale); border: 1px solid var(--pn-blush); transform: rotateY(180deg); }
.pn-flip-title { font-weight: 700; font-size: 16px; color: var(--pn-plum); }
.pn-flip-tagline { font-size: 13px; color: var(--pn-rose); }
.pn-flip-hint { font-size: 12px; color: var(--pn-rose); margin-top: 10px; text-decoration: underline; }
.pn-flip-text { font-size: 13.5px; line-height: 1.55; }

/* Quotes */
.pn-quotes { padding: 28px 4px; border-top: 1px solid var(--pn-blush); }
.pn-quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.pn-quotes blockquote {
    margin: 0; background: var(--pn-pale); border-left: 3px solid var(--pn-rose);
    border-radius: 0 14px 14px 0; padding: 16px 18px; font-style: italic; color: var(--pn-plum);
}

/* Contact */
.pn-page .pn-contact-line { font-size: 19px; color: var(--pn-mauve); font-style: italic; text-align: center; margin: 0 auto 14px; }
.pn-contact-grid, .pn-donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.pn-contact-card, .pn-donate-card { background: var(--pn-pale); border: 1px solid var(--pn-blush); border-radius: 16px; padding: 18px; }
.pn-contact-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pn-mauve); margin-bottom: 6px; }
.pn-contact-value { font-size: 18px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.pn-contact-detail { font-size: 13.5px; color: var(--pn-mauve); margin: 6px 0 0; }
.pn-donate-value { font-weight: 600; margin: 0; }

/* Donate */
.pn-donate { background: var(--pn-pale); border-radius: 20px; padding: 28px 22px; margin-top: 16px; border-top: none; }
.pn-page .pn-donate-line { font-size: 20px; font-style: italic; color: var(--pn-plum); text-align: center; margin: 0 auto 14px; }
.pn-donate-tax { font-size: 13px; color: var(--pn-mauve); margin-top: 18px; }

/* Get help */
.pn-gethelp { text-align: center; padding: 28px 4px 8px; }
.pn-gethelp-img { width: min(320px, 80%); border-radius: 16px; margin-bottom: 20px; }
.pn-gethelp .pn-hero-actions { justify-content: center; }
.pn-form { display: grid; gap: 14px; max-width: 520px; margin-top: 8px; }
.pn-form label { display: grid; gap: 6px; font-weight: 600; color: var(--pn-plum); }
.pn-form input, .pn-popup input {
    font: inherit; padding: 12px 14px; border: 1.5px solid var(--pn-blush);
    border-radius: 10px; background: #fff; color: var(--pn-plum-deep); min-height: 44px; box-sizing: border-box;
}
.pn-form input:focus, .pn-popup input:focus { outline: 2px solid var(--pn-rose); outline-offset: 1px; }
.pn-back { display: inline-block; margin-top: 20px; }

/* Footer */
.pn-footer { border-top: 1px solid var(--pn-blush); padding: 28px 4px 8px; text-align: center; }
.pn-footer-logo { height: 46px; margin-bottom: 10px; }
.pn-footer-hours { font-weight: 600; }
.pn-footer-disclaimer { font-size: 11px; color: var(--pn-mauve); max-width: 620px; margin: 14px auto 0; }
.pn-footer .pn-button { margin-top: 12px; }

/* Signup banner */
.pn-signup-wrap { display: flex; justify-content: center; padding: 8px 4px 4px; }
.pn-popup {
    position: relative; background: var(--pn-blush); border-radius: 20px; padding: 28px 24px;
    max-width: 420px; width: 100%; text-align: center; box-sizing: border-box;
}
.pn-popup-logo { height: 44px; margin-bottom: 10px; }
.pn-popup-title { font-size: 18px; font-weight: 700; color: var(--pn-plum); }
.pn-popup input { width: 100%; margin-bottom: 12px; }
.pn-popup-note { font-size: 12px; color: var(--pn-mauve); margin-top: 12px; }
.pn-popup-close {
    position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
    background: none; border: none; font-size: 24px; color: var(--pn-mauve); cursor: pointer;
}

[hidden] { display: none !important; }

@media (max-width: 700px) {
    .pn-page { margin: 0; border-radius: 0; padding: 12px 18px 24px; }
    .pn-hero { grid-template-columns: 1fr; padding: 22px 4px; }
    .pn-two-col { grid-template-columns: 1fr; }
    .pn-hero-logo { height: 64px; }
    .pn-page h1 { font-size: 26px; }
}

.pn-stay-form { max-width: 440px; margin: 0 auto; }

/* Wide desktops: a little more breathing room, still centered */
@media (min-width: 1200px) {
    .pn-page { max-width: 1080px; }
}

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* Gentle scroll reveals (added by app.js; content is fully visible without JS) */
.pn-reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.pn-reveal.pn-visible { opacity: 1; transform: none; }

/* Soft hover lifts */
.pn-panel, .pn-contact-card, .pn-donate-card, .pn-quotes blockquote, .pn-topic, .pn-flip {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pn-panel:hover, .pn-contact-card:hover, .pn-donate-card:hover, .pn-quotes blockquote:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88, 41, 63, 0.10);
}
.pn-topic:hover, .pn-flip:hover { box-shadow: 0 6px 16px rgba(88, 41, 63, 0.09); }
.pn-flip:hover { transform: translateY(-2px); }
.pn-button { transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.pn-button:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(88, 41, 63, 0.18); }

/* Hero photo: soft depth and a gentle hover */
.pn-hero-photo img { box-shadow: 0 8px 28px rgba(88, 41, 63, 0.14); transition: transform 0.6s ease; }
.pn-hero-photo:hover img { transform: scale(1.015); }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pn-reveal { opacity: 1; transform: none; transition: none; }
    .pn-flip-inner, .pn-panel, .pn-contact-card, .pn-donate-card, .pn-quotes blockquote,
    .pn-topic, .pn-flip, .pn-button, .pn-hero-photo img { transition: none; }
    .pn-panel:hover, .pn-contact-card:hover, .pn-donate-card:hover, .pn-quotes blockquote:hover,
    .pn-flip:hover, .pn-button:hover, .pn-hero-photo:hover img { transform: none; box-shadow: none; }
}

/* ===== Design pass 2: typography, graphics, motion ===== */

/* Refined type pairing */
body { font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.pn-page { font-size: 16px; }
.pn-page h1, .pn-page h2, .pn-page h3, .pn-page h4 {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-weight: 600; letter-spacing: -0.01em;
}
.pn-page h1 { font-size: 38px; font-weight: 600; line-height: 1.18; }
.pn-page h2 { font-size: 27px; text-align: center; padding-top: 10px; }
.pn-page h2::after {
    content: ""; display: block; width: 44px; height: 3px; border-radius: 2px;
    background: var(--pn-rose); margin: 10px auto 0;
}
.pn-hero-tagline { font-weight: 700; }

/* Centered, calmer mission text */
#mission > p { text-align: center; max-width: 72ch; margin-left: auto; margin-right: auto; }
#mission > .pn-rabbinic { text-align: center; }
.pn-page .pn-section-lede { text-align: center; max-width: 70ch; margin: 0 auto 14px; }

/* Rock-solid centering + no sideways overflow anywhere */
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; }
.pn-page { width: min(1080px, calc(100% - 32px)); margin: 24px auto; }
@media (min-width: 1600px) {
    .pn-page { max-width: 1180px; width: min(1180px, calc(100% - 48px)); }
}

/* Soft ambient graphics behind the card (same palette) */
body::before, body::after {
    content: ""; position: fixed; z-index: -1; border-radius: 50%; pointer-events: none;
}
body::before {
    width: 560px; height: 560px; top: -140px; left: -120px;
    background: radial-gradient(circle, rgba(201,154,174,0.45), rgba(201,154,174,0) 68%);
    animation: pn-drift-a 22s ease-in-out infinite alternate;
}
body::after {
    width: 640px; height: 640px; bottom: -180px; right: -140px;
    background: radial-gradient(circle, rgba(160,108,130,0.32), rgba(160,108,130,0) 68%);
    animation: pn-drift-b 26s ease-in-out infinite alternate;
}
@keyframes pn-drift-a { from { transform: translate(0,0); } to { transform: translate(46px, 30px); } }
@keyframes pn-drift-b { from { transform: translate(0,0); } to { transform: translate(-40px, -34px); } }

/* Hero photo: arch shape with an offset blush frame */
.pn-hero-photo { position: relative; }
.pn-hero-photo::before {
    content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
    border-radius: 200px 200px 24px 24px; background: var(--pn-blush);
}
.pn-hero-photo img { border-radius: 200px 200px 24px 24px; box-shadow: 0 12px 32px rgba(88,41,63,0.16); }
@media (max-width: 700px) {
    .pn-hero-photo img, .pn-hero-photo::before { border-radius: 120px 120px 18px 18px; }
}

/* Stat band: intentional rich gradient with a soft glow */
.pn-stat {
    background:
        radial-gradient(420px 220px at 50% -40%, rgba(201,154,174,0.35), rgba(201,154,174,0) 70%),
        linear-gradient(115deg, var(--pn-plum-deep) 0%, var(--pn-plum) 52%, #6b3350 100%);
    box-shadow: 0 10px 30px rgba(88,41,63,0.22);
}

/* Nav: animated underline */
.pn-nav a { position: relative; }
.pn-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 4px; height: 2px; width: 100%;
    background: var(--pn-rose); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.pn-nav a:hover { text-decoration: none; color: var(--pn-plum); }
.pn-nav a:hover::after { transform: scaleX(1); }

/* Helpline CTA: soft breathing glow so help is easy to find */
.pn-hero-actions .pn-button:not(.pn-button-ghost) {
    animation: pn-breathe 3.6s ease-in-out infinite;
}
@keyframes pn-breathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(88,41,63,0.28); }
    50% { box-shadow: 0 0 0 9px rgba(88,41,63,0); }
}

/* Topic + / x */
.pn-topic summary::after { transition: transform 0.3s ease; }
.pn-topic[open] summary::after { content: "+"; transform: rotate(45deg); }

/* Staggered reveals for card grids (delays set in app.js) */
.pn-reveal { transform: translateY(22px); }

/* Reduced motion: still calm for everyone */
@media (prefers-reduced-motion: reduce) {
    body::before, body::after, .pn-hero-actions .pn-button:not(.pn-button-ghost) { animation: none; }
    .pn-nav a::after { transition: none; }
}

/* ===== Fix pass 3 ===== */

/* Stat band: truly centered text (the generic .pn-page p rule out-specified .pn-stat-text) */
.pn-page .pn-stat p.pn-stat-number { margin: 0; }
.pn-page .pn-stat p.pn-stat-text { margin: 10px auto 0; max-width: 640px; }

/* Footer disclaimer: restore its centered max-width (same specificity bug) */
.pn-page .pn-footer p.pn-footer-disclaimer { margin: 14px auto 0; max-width: 620px; }

/* Signup form: match the site instead of MailerLite defaults */
.pn-stay-form { max-width: 640px; }
#mlb2-47401724.ml-form-embedContainer .ml-form-embedBody,
#mlb2-47401724.ml-form-embedContainer .ml-form-successBody {
    background: var(--pn-pale) !important;
    border: 1px solid var(--pn-blush) !important;
    border-radius: 20px !important;
    padding: 30px 30px 26px !important;
    box-shadow: 0 8px 24px rgba(88,41,63,0.08) !important;
}
#mlb2-47401724.ml-form-embedContainer .ml-form-embedBody h4,
#mlb2-47401724.ml-form-embedContainer .ml-form-successBody h4 {
    font-family: "Fraunces", Georgia, serif !important;
    font-size: 26px !important; font-weight: 600 !important; letter-spacing: -0.01em !important;
    color: var(--pn-plum) !important; text-align: center !important; margin: 0 0 10px !important;
}
#mlb2-47401724.ml-form-embedContainer .ml-form-embedBody p,
#mlb2-47401724.ml-form-embedContainer .ml-form-successBody p {
    font-family: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 15.5px !important; color: var(--pn-mauve) !important;
    text-align: center !important; line-height: 1.6 !important;
}
#mlb2-47401724.ml-form-embedContainer .ml-form-embedBody label {
    font-family: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    color: var(--pn-plum) !important; font-weight: 700 !important;
}
#mlb2-47401724.ml-form-embedContainer .ml-form-embedBody input.form-control {
    font-family: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 15px !important; color: var(--pn-plum-deep) !important;
    background: #fff !important; border: 1.5px solid var(--pn-blush) !important;
    border-radius: 10px !important; padding: 12px 14px !important; min-height: 46px !important;
}
#mlb2-47401724.ml-form-embedContainer .ml-form-embedBody input.form-control:focus {
    border-color: var(--pn-rose) !important; outline: 2px solid var(--pn-rose) !important; outline-offset: 1px !important;
}
#mlb2-47401724.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary {
    font-family: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 15px !important; font-weight: 700 !important;
    background: var(--pn-plum) !important; color: #fff !important;
    border: none !important; border-radius: 999px !important;
    padding: 12px 22px !important; min-height: 46px !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}
#mlb2-47401724.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary:hover {
    background: var(--pn-plum-deep) !important;
    transform: translateY(-1px) !important; box-shadow: 0 5px 14px rgba(88,41,63,0.18) !important;
}
@media (prefers-reduced-motion: reduce) {
    #mlb2-47401724.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary { transition: none !important; }
    #mlb2-47401724.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary:hover { transform: none !important; box-shadow: none !important; }
}

/* Keep the submit row inside the card (MailerLite floats it) */
#mlb2-47401724.ml-form-embedContainer .ml-form-embedSubmit {
    float: none !important; clear: both !important; margin: 16px 0 0 !important;
}

/* Balanced card grids: orphan cards center on their row */
.pn-flip-grid, .pn-quotes-grid, .pn-contact-grid, .pn-donate-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.pn-flip-grid > * { flex: 1 1 200px; max-width: 280px; }
.pn-quotes-grid > * { flex: 1 1 230px; max-width: 340px; }
.pn-contact-grid > *, .pn-donate-grid > * { flex: 1 1 220px; max-width: 360px; }
@media (max-width: 700px) {
    .pn-flip-grid > *, .pn-quotes-grid > *, .pn-contact-grid > *, .pn-donate-grid > * { max-width: none; }
}

/* Brief attention pulse for the signup form when the footer button is pressed */
@keyframes pn-attention-pulse {
    0% { box-shadow: 0 0 0 0 rgba(122, 62, 89, 0.45); }
    70% { box-shadow: 0 0 0 18px rgba(122, 62, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(122, 62, 89, 0); }
}
.pn-stay-form.pn-attention { animation: pn-attention-pulse 1.2s ease-out 2; border-radius: 18px; }
@media (prefers-reduced-motion: reduce) {
    .pn-stay-form.pn-attention { animation: none; }
}

.pn-give-card { max-width: 480px; margin: 22px auto; text-align: center; }
.pn-give-card .pn-contact-label { margin-bottom: 10px; }
.pn-give-card givebutter-giving-form { display: block; width: 100%; max-width: 440px; margin: 0 auto; }

/* ---- Motion & graphics (approved design preview, 2026-10-27) ---- */

/* Hero entrance choreography */
.pn-preview-motion .pn-hero-logo,
.pn-preview-motion .pn-hero-tagline,
.pn-preview-motion .pn-hero-text h1,
.pn-preview-motion .pn-hero-sub,
.pn-preview-motion .pn-hero-actions {
    animation: pn-hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pn-preview-motion .pn-hero-tagline { animation-delay: 0.12s; }
.pn-preview-motion .pn-hero-text h1 { animation-delay: 0.24s; }
.pn-preview-motion .pn-hero-sub { animation-delay: 0.38s; }
.pn-preview-motion .pn-hero-actions { animation-delay: 0.52s; }
.pn-preview-motion .pn-hero-photo img { animation: pn-hero-zoom 1.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes pn-hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pn-hero-zoom { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }

/* Flip-card icons */
.pn-flip-icon { width: 36px; height: 36px; color: #f3dfe7; margin-bottom: 10px; }
.pn-flip-front { align-items: center; }
.pn-flip { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pn-flip:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(88, 41, 63, 0.16); }

/* Oversized quote mark */
.pn-quotes { position: relative; }
.pn-quote-mark {
    position: absolute; top: -40px; left: 2%; font-size: 180px; line-height: 1;
    color: #f3dfe7; font-family: 'Fraunces', Georgia, serif; pointer-events: none; z-index: 0;
}
.pn-quotes blockquote { position: relative; z-index: 1; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pn-quotes blockquote:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(88, 41, 63, 0.12); }

/* Stat emphasis */
.pn-stat-number { display: inline-block; }
.pn-preview-motion .pn-stat-number.pn-reveal.pn-reveal-in { animation: pn-stat-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes pn-stat-pop { from { transform: scale(0.82); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .pn-shell-art, .pn-shell-art img, .pn-preview-motion .pn-hero-photo img { animation: none !important; }
    .pn-shell-art { opacity: 1; transform: none; }
    .pn-shell-art .pn-shell-lines { opacity: 0; clip-path: none; }
    .pn-shell-art .pn-shell-color { opacity: 1; transform: none; }
    .pn-preview-motion .pn-hero-logo, .pn-preview-motion .pn-hero-tagline,
    .pn-preview-motion .pn-hero-text h1, .pn-preview-motion .pn-hero-sub,
    .pn-preview-motion .pn-hero-actions, .pn-preview-motion .pn-hero-photo img { animation: none; }
}

/* Prevent decorative accents from creating horizontal overflow on small screens */
.pn-page { overflow-x: clip; }

/* Original shell-and-pearl illustration: ink lines draw in from the hinge, then color and pearl wash over */
.pn-stat { position: relative; }
.pn-shell { display: block; margin: 0 auto 14px; position: relative; width: 160px; height: 160px; opacity: 0; transform: translateY(14px); }
.pn-shell-hero { margin: 20px 0 0; width: 132px; height: 132px; }
.pn-shell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pn-shell-color { background: radial-gradient(circle, rgba(253,246,240,0.95) 0%, rgba(253,246,240,0) 68%); border-radius: 50%; }
.pn-shell-lines { opacity: 0; clip-path: circle(0% at 50% 70%); }
.pn-shell-color { opacity: 0; transform: scale(0.96); }
.pn-shell.pn-draw-in { animation: pn-shell-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards, pn-art-float 7s ease-in-out 3.1s infinite alternate, pn-art-glow 4.6s ease-in-out 3.1s infinite; }
.pn-shell.pn-draw-in .pn-shell-lines { animation: pn-lines-in 1.8s cubic-bezier(0.33, 0, 0.2, 1) 0.15s forwards; }
.pn-shell.pn-draw-in .pn-shell-color { animation: pn-color-in 1.1s ease-out 1.7s forwards; }
@keyframes pn-shell-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes pn-lines-in { from { opacity: 0; clip-path: circle(0% at 50% 70%); } 15% { opacity: 1; } to { opacity: 1; clip-path: circle(72% at 50% 70%); } }
@keyframes pn-color-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes pn-art-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes pn-art-glow { 0%, 100% { filter: drop-shadow(0 8px 18px rgba(211,162,184,0.25)); } 50% { filter: drop-shadow(0 10px 26px rgba(211,162,184,0.5)); } }
@media (max-width: 720px) { .pn-shell { width: 120px; height: 120px; } .pn-shell-hero { width: 104px; height: 104px; } }

/* Continuous gentle float on the hero photo */
.pn-preview-motion .pn-hero-photo img { animation: pn-hero-zoom 1.4s cubic-bezier(0.22, 1, 0.36, 1) both, pn-photo-float 6s ease-in-out 1.6s infinite alternate; }
@keyframes pn-photo-float { from { transform: translateY(0); } to { transform: translateY(-12px); } }
