/* V40 focused update — static invitation gallery + real-ticket hero invitation previews.
   All other homepage sections and customer-facing documents preserve V39 code. */
.v40-invitation-gallery{background:#111013;isolation:isolate}
.v40-invitation-gallery .v39-studio-intro{padding:42px 18px 27px}
.v40-invitation-gallery .v39-studio-intro h2{font-size:clamp(32px,3.2vw,46px);margin-bottom:8px}
.v40-invitation-gallery .v39-studio-split{align-items:stretch}
.v40-invitation-gallery .v39-studio-half{padding:30px clamp(19px,2.5vw,38px) 43px}
.v40-invitation-gallery .v39-espresso{background:#f8f5f1;color:#251f22}
.v40-invitation-gallery .v39-double{background:#201e21;color:#f9f5f6}
.v40-invitation-gallery .v39-studio-content{width:min(100%,570px)}
.v40-invitation-gallery .v39-ticket-position{display:flex;justify-content:center;align-items:start}
.v40-invitation-gallery .v39-ticket{width:min(100%,556px);transition:transform .24s ease,box-shadow .24s ease;box-shadow:0 14px 28px #24191819,0 35px 70px #2419181d,inset 0 2px 0 #fff}
.v40-invitation-gallery .v39-double .v39-ticket{box-shadow:0 15px 28px #0008,0 32px 65px #0005,inset 0 2px 0 #ffffff20}
.v40-invitation-gallery .v39-ticket-head{height:77px;gap:16px;padding-left:29px}
.v40-invitation-gallery .v39-ticket-head strong{font-size:25px}
.v40-invitation-gallery .v39-ticket-content{padding:28px 29px 23px;min-height:255px}
.v40-invitation-gallery .v39-double .v39-ticket-content{min-height:291px}
.v40-invitation-gallery .v39-ticket-title{font-size:clamp(25px,2.55vw,36px);max-width:440px}
.v40-invitation-gallery .v39-ticket-message{font-size:clamp(22px,2.05vw,29px);line-height:1.42}
.v40-invitation-gallery .v39-ticket-name-source{width:157px;height:85px}
.v40-invitation-gallery .v39-ticket-portrait{width:87px;height:87px}
.v40-invitation-gallery .v39-ticket-stub{padding:19px 29px 23px;min-height:154px}
.v40-invitation-gallery .v39-double .v39-ticket-stub{min-height:172px}
.v40-gallery-caption{min-height:61px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.v40-gallery-caption>div{min-width:0}
.v40-gallery-index{margin:0 0 5px!important;font-size:11px;font-weight:850;letter-spacing:.14em;color:#ac376f}
.v40-gallery-desc{margin:0!important;font-size:14px;line-height:1.35;font-weight:560;color:#675a60}
.v40-gallery-caption small{flex:none;font-size:11px;line-height:1.2;color:#86643a;letter-spacing:.02em;font-weight:750}
.v40-invitation-gallery .v39-double .v40-gallery-index{color:#f8a2c7}
.v40-invitation-gallery .v39-double .v40-gallery-desc{color:#dcced7}
.v40-invitation-gallery .v39-double .v40-gallery-caption small{color:#e2bf8a}
.v40-gallery-footer{max-width:1100px;color:#cfc2c9;padding:19px 18px 23px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:11.5px;line-height:1.5}
.v40-gallery-footer span:last-child{opacity:.82;max-width:550px}
/* Preserve the authentic in-app ticket's proportions and language inside the hero phone. */
.ivp-real-preview{padding:10px!important;display:flex;flex-direction:column;gap:10px;min-height:100%;background:#f6f3f5}
.ivp-real-ticket{width:100%;position:relative;isolation:isolate;border-radius:25px;overflow:hidden;background:#fff;box-shadow:0 8px 21px #34253420,0 1px 2px #34253413;border:1px solid #e3d9dc;color:#251e24}
.ivp-real-ticket.is-double{background:#29252a;border-color:#474044;color:#fff;box-shadow:0 11px 25px #0006}
.ivp-real-head{height:47px;display:flex;align-items:center;gap:10px;background:linear-gradient(120deg,#f8e8c9,#eed2a4);padding:0 13px;border-bottom:1px solid #dac39c}
.ivp-real-ticket.is-double .ivp-real-head{background:linear-gradient(115deg,#f1d8a9,#deac67);border-color:#ad8b60}
.ivp-real-head strong{font-size:16px;letter-spacing:-.045em;font-weight:850}
.ivp-real-cup{display:grid;place-items:center;width:31px;height:31px;border:1px solid #c2a67e;border-radius:10px;background:#fff8e7d9;box-shadow:inset 0 1px 2px #fff,0 2px 4px #87602b24;color:#805422}
.ivp-real-cup svg{width:19px;height:19px}
.ivp-real-body{padding:14px 15px 13px;min-height:143px;display:flex;flex-direction:column;gap:11px}
.ivp-real-ticket.is-double .ivp-real-body{padding-top:14px;min-height:207px}
.ivp-real-person{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ivp-real-person small{display:block;font-size:9px;line-height:1.3;font-weight:800;letter-spacing:.12em;color:#806f7a}
.ivp-real-ticket.is-double .ivp-real-person small{color:#e6c795}
.ivp-real-script{display:block;font-family:'Yellowtail',cursive;font-weight:400;font-size:42px;line-height:1.17;letter-spacing:-.035em;margin-top:2px}
.ivp-real-person img{width:54px;height:54px;border-radius:50%;object-fit:cover;object-position:center 26%;border:2px solid #bd8a46;flex:none}
.ivp-real-ticket.is-double .ivp-real-person img{border-color:#eac48e}
.ivp-real-planline{font-size:20px;letter-spacing:-.045em;font-weight:800;line-height:1.23;margin:0 0 4px}
.ivp-real-note{border-radius:14px;border:1px solid #64575f;background:linear-gradient(145deg,#ffffff12,#ffffff04);padding:12px 12px 14px;line-height:1.34;font-size:17px;letter-spacing:-.035em;font-weight:760;overflow-wrap:break-word;flex:1}
.ivp-real-perforation{position:relative;margin:0 13px;height:16px;display:flex;align-items:center}
.ivp-real-perforation:before{content:'';height:1px;width:100%;background:repeating-linear-gradient(90deg,#b9a9ac 0 4px,transparent 4px 11px)}
.ivp-real-ticket.is-double .ivp-real-perforation:before{background:repeating-linear-gradient(90deg,#b69a77 0 4px,transparent 4px 11px)}
.ivp-real-perforation:after{content:'';position:absolute;left:-22px;top:-1px;width:9px;height:18px;border-radius:50%;background:#f6f3f5;box-shadow:calc(100vw + 1px) 0 0 transparent}
.ivp-real-stub{min-height:95px;background:#fdfafd;padding:11px 15px 9px;display:flex;flex-direction:column;gap:5px}
.ivp-real-ticket.is-double .ivp-real-stub{background:#232024;min-height:114px}
.ivp-real-facts{display:flex;flex-direction:column;gap:4px;color:#55474f;font-size:11px;line-height:1.37;font-weight:650}
.ivp-real-ticket.is-double .ivp-real-facts{color:#e8d9e1}
.ivp-real-facts span{display:flex;align-items:center;gap:6px;overflow-wrap:anywhere}
.ivp-real-facts svg{color:#a67532;width:13px;height:13px;flex:none}
.ivp-real-ticket.is-double .ivp-real-facts svg{color:#e5bc81}
.ivp-real-idea-name{display:block;color:#e7bf87;font-size:9px;font-weight:850;letter-spacing:.12em}
.ivp-real-idea{margin:0 0 3px;font-size:12px;line-height:1.32;font-weight:800}
.ivp-real-brand{display:flex;justify-content:flex-end;margin-top:auto;padding-top:4px}
.ivp-real-brand img{max-width:88px;max-height:30px;width:auto;height:auto;object-fit:contain}
.ivp-real-caption{margin:0!important;color:#6c6069;font-size:11px;line-height:1.45}
.ivp-real-preview .phone-cta{margin-top:0!important;min-height:39px}
.ivp-real-preview .phone-date-options{margin:0;gap:6px}
.ivp-real-preview .phone-date-options button{min-height:39px;padding:8px 5px;font-size:9px}
.ivp-real-compose{padding:12px!important;background:#f8f5f6;display:flex;flex-direction:column;gap:11px;min-height:100%}
.ivp-real-compose-head{display:flex;gap:9px;align-items:center}
.ivp-real-compose-head img{width:44px;height:44px;object-fit:cover;border-radius:50%;border:2px solid #ec83b9}
.ivp-real-compose-head small{color:#b43576;font-size:9px;letter-spacing:.12em;font-weight:800}
.ivp-real-compose-head h3{font-size:19px;line-height:1.2;letter-spacing:-.04em;margin:3px 0 0}
.ivp-real-compose-explainer{font-size:10.5px;color:#6d5d69;line-height:1.5;margin:0}
.ivp-real-compose-detail{display:flex;flex-direction:column;gap:7px;border:1px solid #e7dce2;border-radius:13px;padding:12px;background:#fff;color:#3b303a;font-size:11px}
.ivp-real-compose-detail span{display:flex;gap:7px;align-items:center}
.ivp-real-compose-detail svg{width:15px;height:15px;color:#b7437b}
.ivp-real-compose label{font-size:10.5px;font-weight:770;color:#3e3039}
.ivp-real-compose textarea{background:#fff;border:1px solid #dfcfd7;border-radius:12px;min-height:88px;max-height:130px;padding:10px 11px;font:inherit;font-size:12px;line-height:1.43;resize:vertical;color:#211b21}
.ivp-real-note-count{font-size:9px;color:#867480;line-height:1.4}
.ivp-real-compose .phone-cta{margin-top:auto}
.ivp-real-accepted{padding:14px!important;background:#faf6f2;display:flex;flex-direction:column;gap:15px;min-height:100%}
.ivp-real-accept-identity{display:flex;align-items:center;gap:12px}
.ivp-real-accept-identity img{width:58px;height:58px;object-fit:cover;border-radius:50%;border:2px solid #ee83b8}
.ivp-real-accept-identity small{color:#b13979;font-size:9px;font-weight:800;letter-spacing:.09em}
.ivp-real-accept-identity h3{margin:4px 0 0;font-size:20px;line-height:1.2;letter-spacing:-.04em}
.ivp-real-accepted>p{font-size:12px;line-height:1.55;color:#53474f;margin:0}
.ivp-real-confirm-plan{background:#fff;border:1px solid #e5d7d3;border-radius:15px;padding:13px 14px;display:flex;flex-direction:column;gap:9px}
.ivp-real-confirm-plan strong{font-size:16px}
.ivp-real-confirm-plan span{font-size:11px;display:flex;align-items:center;gap:7px}
.ivp-real-confirm-plan svg{width:15px;height:15px;color:#b77739}
.ivp-real-confirm-plan small{color:#846e7b;font-size:10px}
.ivp-real-accepted .phone-cta{margin-top:auto}
/* The source app is intended to be experienced, not imitated as a 2nd generic form. */
@media(max-width:900px){.v40-invitation-gallery .v39-studio-content{width:min(100%,560px)}.v40-invitation-gallery .v39-studio-half{padding:31px 19px 37px}}
@media(max-width:700px){.v40-invitation-gallery .v39-studio-intro{padding:38px 17px 26px}.v40-invitation-gallery .v39-ticket{width:min(100%,540px)}.v40-invitation-gallery .v39-ticket-content{padding:21px 22px;min-height:224px}.v40-invitation-gallery .v39-double .v39-ticket-content{min-height:271px}.v40-invitation-gallery .v39-ticket-stub{padding:16px 21px 20px}.v40-invitation-gallery .v39-ticket-head{height:67px;padding-left:22px}.v40-gallery-desc{font-size:13px}.v40-gallery-caption{min-height:53px}}
@media(max-width:375px){.v40-invitation-gallery .v39-studio-half{padding-left:13px;padding-right:13px}.v40-invitation-gallery .v39-ticket-portrait{width:67px;height:67px}.v40-invitation-gallery .v39-ticket-name-source{width:125px;height:70px}.v40-invitation-gallery .v39-ticket-message{font-size:22px}.v40-gallery-caption small{font-size:9.5px}}
@media(prefers-reduced-motion:reduce){.v40-invitation-gallery .v39-ticket{transition:none!important;transform:none!important}}

/* Ticket signatures and names keep source-led character even if external fonts fail. */
.ivp-real-script{font-family:'Yellowtail','Lobster Two','Snell Roundhand','Brush Script MT',cursive!important;font-style:italic}
.ivp-real-head strong{color:#272024}
