/* The live poster shares the constructor renderer; the first two sections fit a viewport. */
.site-header{height:62px}
.hero{padding-top:24px}
.hero-grid{grid-template-columns:1fr 1fr;grid-template-areas:none;column-gap:72px;row-gap:0;align-items:center}
.hero-left,.hero-right{min-width:0}
.hero-heading{margin-bottom:18px}
.hero h1{font-size:clamp(43px,6.1svh,58px);line-height:1.01;max-width:550px}
.hero .eyebrow{margin-bottom:12px;font-size:9px}
.hero .lead{font-size:14px;line-height:1.65;margin-top:16px;max-width:460px}
.birth-form{gap:11px 15px}
.form-heading{font-size:10px;padding-bottom:9px;margin-bottom:0}
.field input,.field select{height:43px;padding-block:8px;font-size:14px;border-radius:9px}
.field label{font-size:11px}.field{gap:5px}.field small{font-size:8px}.form-footnote{margin:0;font-size:8px}
.input-icon>svg{top:12px;width:17px;height:17px}
.city-options{top:67px}.city-options [role=option]{align-items:center;gap:12px;padding:10px 13px;min-height:42px}
.city-options [role=option]>span{flex-shrink:0}.city-options [role=option]>small{text-align:right;line-height:1.4;max-width:60%;font-size:10px}
.hero-preview{padding:0}
.preview-topline{margin-bottom:9px;font-size:7px}
.poster-stage{--poster-height:clamp(260px,42svh,390px);display:flex;justify-content:center;align-items:center;position:relative;height:var(--poster-height);width:100%;max-width:none;aspect-ratio:auto;padding:0;border:0;background:none!important;box-shadow:none!important;overflow:visible;margin:0}
.poster-frame-wrap{--poster-ratio:.625;height:100%;width:calc(var(--poster-height)*var(--poster-ratio));position:relative;box-shadow:0 12px 42px #0006;outline:1px solid #d9b66f55;outline-offset:5px;background:#f5efe1}
#poster-frame{position:absolute;inset:0;width:100%;height:100%;border:0;opacity:0;transition:opacity .2s}
#poster-frame.is-ready{opacity:1}
.poster-template-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.watermark{z-index:2;background:#0b10227a;color:#f8ead3;left:0;right:0;bottom:0;padding:2px;opacity:.8;font-size:5px;line-height:1.2;pointer-events:none}
.preview-loading{border-radius:6px;background:#0b102268;backdrop-filter:blur(1px);font-size:11px}
.preview-status{margin-top:10px;min-height:14px;font-size:9px;line-height:1.4}
.style-chips{margin-top:8px;gap:6px}.chip{min-height:28px;padding:5px 12px;font-size:9px}
.hero-preview>.subtle-link{margin-top:7px;font-size:9px}
.hero-actions{margin-top:12px;gap:9px}.action-pair .button{min-height:44px;padding:10px 20px;font-size:11px}.action-pair small{font-size:8px;margin-top:3px}
.hero-bottom{margin-top:20px;padding-block:13px;font-size:8px}
.hero-glow{top:30px;right:5%;width:520px;height:520px}
.story.section{--story-image-height:clamp(230px,48svh,510px);padding-block:clamp(24px,4svh,42px)}
.story .section-heading{margin-bottom:22px;align-items:center;gap:50px}
.story .eyebrow{margin-bottom:12px}
.story h2{font-size:clamp(35px,5.2svh,47px)}
.story .section-heading>p{font-size:13px;line-height:1.75;max-width:345px}
.story-image{height:var(--story-image-height);display:flex;justify-content:center;align-items:center;background:#eae2d5}
.story-photo{position:relative;height:100%;aspect-ratio:1672/941;max-width:100%}
.story-photo>img:first-child{width:100%;height:100%;object-fit:contain}
.story-photo>.story-framed-poster{position:absolute;left:51.72%;top:17.9%;width:8.35%;height:27.3%;object-fit:contain;background:#1d2630}
.story-slide figcaption{padding-top:15px;font-size:25px;min-height:45px}.story-slide figcaption small{font-size:10px}
.carousel-controls{margin-top:12px}.story .arrow-button{width:34px;height:34px;font-size:17px}
.receive-grid{align-items:stretch;grid-template-columns:1fr 1fr}
.receive-card{height:100%;display:flex;flex-direction:column}
.free-card{padding:38px 36px 29px}
.free-card>.button{margin-top:auto}
.free-card>ul{margin-bottom:35px}
.free-card>.subtle-link{min-height:20px;margin-top:10px}
.paid-card-content{flex:1;display:flex;flex-direction:column}
.paid-card-content>.button{margin-top:auto}
.package-note{min-height:20px;margin-top:10px}
@media(min-width:801px) and (max-height:780px){
  .site-header{height:56px}.hero{padding-top:18px}.hero-grid{column-gap:60px}
  .hero h1{font-size:43px}.hero .lead{font-size:13px;margin-top:12px}.hero-heading{margin-bottom:13px}
  .birth-form{gap:8px 13px}.field input{height:39px}.field label{font-size:10px}.field small{font-size:8px}.form-heading{padding-bottom:7px}.form-footnote{font-size:8px}
  .poster-stage{--poster-height:35svh}.hero-bottom{margin-top:14px;padding-block:10px}.preview-topline{margin-bottom:7px}
  .hero-actions{margin-top:9px}.action-pair .button{min-height:40px}.hero .eyebrow{margin-bottom:9px}
  .story.section{--story-image-height:43svh;padding-block:24px}.story h2{font-size:36px}.story .section-heading{margin-bottom:16px}.story .eyebrow{margin-bottom:8px}
}
@media(min-width:621px) and (max-width:800px){
  .hero-grid{column-gap:27px;align-items:start}.hero h1{font-size:39px}.hero .lead{font-size:12px;line-height:1.65}.hero .eyebrow{font-size:7px}
  .poster-stage{--poster-height:clamp(225px,35svh,330px)}.preview-topline{font-size:6px;gap:7px}.chip{font-size:8px;padding-inline:7px}.action-pair .button{font-size:10px}
  .birth-form{gap:9px 11px}.field input{height:42px;font-size:13px}.form-heading{font-size:9px}.hero-bottom{margin-top:18px}
  .story .section-heading{gap:25px}.story .section-heading>p{font-size:12px}.story h2{font-size:36px}
  .free-card{padding:28px 22px 24px}
}
@media(max-width:620px){
  html{scroll-padding-top:65px}.site-header{height:54px}.site-header .brand{font-size:20px}.site-header .brand-symbol{font-size:23px}.site-header .brand small{font-size:5px;margin-top:5px}.site-header .button{min-height:32px;font-size:9px;padding:7px 12px}
  .hero{padding-top:13px}.hero-left,.hero-right{display:contents}.hero-grid{grid-template-columns:1fr;grid-template-areas:'heading' 'preview' 'form' 'actions';row-gap:9px;column-gap:0}
  .hero-heading{grid-area:heading;margin:0}.hero h1{font-size:34px;line-height:.97;max-width:350px}.hero h1>br{display:none}
  .hero .eyebrow{font-size:7px;letter-spacing:.13em;margin-bottom:7px}.hero .lead{font-size:11px;line-height:1.5;margin-top:8px;max-width:350px}
  .hero-preview{grid-area:preview}.preview-topline{display:none}.poster-stage{--poster-height:clamp(150px,22svh,210px)}
  .preview-status{font-size:8px;margin-top:6px;min-height:11px;line-height:1.2}.style-chips{margin-top:6px;gap:5px}.chip{min-height:25px;padding:4px 10px;font-size:8px}.hero-preview>.subtle-link{position:absolute;right:0;margin-top:-21px;font-size:0}.hero-preview>.subtle-link span{font-size:12px}
  .birth-form{grid-area:form;grid-template-columns:1fr 1fr;gap:7px 11px;margin:0;padding-top:3px;scroll-margin-top:65px}
  .field-name,.city-field{grid-column:auto}.form-heading,.field>small,.form-footnote{display:none}
  .field{gap:4px}.field label{font-size:10px}.field input,.field select{height:39px;padding:7px 9px;font-size:16px;border-radius:8px}.input-icon>input{padding-left:27px;font-size:16px}.input-icon>svg{left:8px;top:12px;width:14px;height:14px}.city-options{top:61px;width:calc(200% + 11px);left:auto;right:0}.city-options [role=option]{font-size:12px}.field-error{font-size:10px}
  .hero-actions{grid-area:actions;margin:3px 0 0;gap:7px}.action-pair .button{min-height:39px;padding:9px 16px;font-size:11px}.action-pair small{font-size:7px;line-height:1.3;margin-top:3px}.hero-bottom{margin-top:10px;padding-block:9px}.hero-bottom>span{font-size:7px;max-width:none}.hero-bottom>a>span{font-size:13px}
  .hero-glow{top:150px;width:350px;height:350px;right:calc(50% - 175px)}
  .story.section{--story-image-height:clamp(180px,34svh,330px);padding-block:27px}
  .story .section-heading{margin-bottom:17px}.story .eyebrow{font-size:7px;margin-bottom:10px}.story h2{font-size:34px}.story .section-heading>p{font-size:12px;line-height:1.65;max-width:none;margin-top:14px}
  .story-slide figcaption{font-size:22px;padding-top:12px;min-height:0}.story-slide figcaption small{font-size:9px;margin-top:4px}.carousel-controls{margin-top:13px}.image-label{font-size:7px;padding:5px 9px;top:10px;left:10px}
  .receive-card{height:auto;min-height:0}.free-card{padding:28px 25px}.free-card>ul{margin-bottom:28px}.paid-card-content{padding:23px 25px 27px}
}
@media(max-width:620px) and (max-height:740px){
  .hero h1{font-size:30px}.hero .lead{font-size:10px;max-width:325px}.poster-stage{--poster-height:142px}.hero-grid{row-gap:7px}.hero .eyebrow{font-size:6px}.hero-bottom{display:none}.hero{padding-bottom:12px}
  .story.section{--story-image-height:29svh;padding-block:22px}.story h2{font-size:30px}.story .section-heading>p{font-size:11px;margin-top:10px}
}
@media(max-width:620px){.hero-preview>.subtle-link{position:static;font-size:8px;line-height:12px;margin-top:4px}.hero-preview>.subtle-link span{font-size:9px}}
@media(max-width:620px){.hero{padding-top:11px}.hero-grid{row-gap:8px}}
@media(max-width:620px) and (max-height:740px){.hero{padding-top:10px;padding-bottom:6px}.hero-grid{row-gap:6px}}
@media(prefers-reduced-motion:reduce){#poster-frame{transition:none}}
/* Landing revision: compact controls, a single catalogue track and poster-sized actions. */
.hero-right{--action-width:calc(clamp(260px,42svh,390px)*.625)}
.hero-actions{width:var(--action-width);max-width:100%;margin-inline:auto}
.hero-actions .button{padding:8px 10px;gap:7px;justify-content:center;font-size:10px;line-height:1.3}
.hero-actions small{line-height:1.45;font-size:8px}
.delivery-details{color:var(--gold,#d9b66f);text-underline-offset:2px;white-space:nowrap}
.birth-form{max-width:490px}.field input,.field select{height:37px}.input-icon>svg{top:10px}
#initial-poster{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
#initial-poster[hidden]{display:none}
#initial-poster>svg{width:100%;height:100%;display:block}
.style-carousel{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;position:relative;padding:3px 0 12px;scroll-padding:0}
.style-carousel::-webkit-scrollbar{display:none}
.style-carousel .style-card{flex:0 0 calc((100% - 48px)/3);min-width:0;scroll-snap-align:start}
.style-carousel::after{content:'';flex:0 0 calc((100% - 48px)/3*2 + 24px)}
.style-navigation{display:flex;align-items:center;justify-content:center;gap:25px;margin-top:20px}
#style-counter{font-size:12px;letter-spacing:2px;color:#746a5d}
@media(min-width:801px) and (max-height:780px){.hero-right{--action-width:calc(35svh*.625)}.hero-actions .button{font-size:9px;min-height:35px}.hero-actions small{font-size:7px}.field input{height:35px}}
@media(max-width:800px) and (min-width:621px){.hero-right{--action-width:calc(clamp(225px,35svh,330px)*.625)}}
@media(max-width:620px){.hero-actions{width:min(100%,320px)}.hero-actions .button{font-size:11px;min-height:36px}.hero-actions small{font-size:7px;line-height:1.35}.field input{height:35px}.input-icon>svg{top:10px}.style-carousel{gap:16px}.style-carousel .style-card{flex-basis:78%}.style-carousel::after{flex-basis:calc(22% - 16px)}.style-navigation{margin-top:12px}.hero-grid{row-gap:6px}}
#initial-poster .poster-star-map svg{width:100%;height:100%}
#initial-poster .poster-zodiac-icon svg{width:48px;height:48px}
@media(max-width:620px){.style-carousel .style-card{display:block}.style-carousel .style-art{height:310px;padding:20px}.style-carousel .style-card-title{margin-top:15px}.style-carousel .style-card-title h3{font-size:26px}.style-carousel .style-card:after{display:none}.style-carousel .style-card p{margin-top:6px}}
@media(min-width:621px){.hero-actions small{font-size:9px}.hero-actions .button{font-size:11px}}
@media(min-width:801px) and (max-height:780px){.hero-actions small{font-size:8px}.hero-actions .button{font-size:10px}}
/* The initial poster is plain SVG: no foreignObject sizing differences in Safari. */
#initial-poster .initial-sky{width:900px!important;height:900px!important}
#initial-poster text.poster-name{font-size:65px;letter-spacing:11px;fill:#20242c}
/* A miniature of /create_poster/ is the only hero renderer. */
#poster-frame{opacity:1;transition:none}

/* Desktop actions align with the full template-switcher row. */
@media(min-width:801px){
  .hero-right{--hero-controls-width:300px}
  .hero-right .style-chips,.hero-right .hero-actions{width:min(100%,var(--hero-controls-width));margin-inline:auto}
  .hero-right .style-chips{display:flex}
  .hero-right .style-chips>.chip{flex:1;white-space:nowrap}
  .hero-right .hero-actions .button{white-space:nowrap}
}

/* Enlarge the same live iframe without cloning or reloading the constructor. */
dialog.poster-frame-wrap{display:block;padding:0;border:0;margin:0;max-width:none;max-height:none;color:inherit;overflow:visible;inset:auto}
.poster-zoom-trigger{position:absolute;inset:0;z-index:3;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in;border-radius:0}
.poster-zoom-trigger:focus-visible{outline:2px solid #d9b66f;outline-offset:7px}
.poster-zoom-close{display:none}
dialog.poster-frame-wrap[open]{position:fixed;inset:0;margin:auto;width:min(calc(100vw - 24px),calc((100dvh - 24px)*var(--poster-ratio)));height:auto;aspect-ratio:var(--poster-ratio);max-width:none;max-height:none;box-shadow:0 18px 80px #0009}
dialog.poster-frame-wrap::backdrop{background:rgba(4,8,20,.88);backdrop-filter:blur(5px)}
dialog.poster-frame-wrap[open] .poster-zoom-trigger{display:none}
dialog.poster-frame-wrap[open] .poster-zoom-close{display:flex;align-items:center;justify-content:center;position:absolute;z-index:4;top:8px;right:8px;width:34px;height:34px;padding:0;border:1px solid #ffffff55;border-radius:50%;background:#0b1022d9;color:#fff;font:24px/1 sans-serif;cursor:pointer}
body.poster-zoom-open{overflow:hidden}

/* Free poster email form. */
.email-modal{width:min(500px,calc(100% - 28px))}
.email-modal .modal-inner{padding:30px}
.email-modal h2{font-size:37px;line-height:1.08;padding-right:15px}
.email-modal .modal-lead{font-size:13px;line-height:1.6;margin:14px 0 22px}
#email-form{display:grid;gap:16px}
#email-form input{height:43px;font-size:16px}
#email-form>.button{min-height:43px}
.email-footnote{font-size:10px;line-height:1.5;color:var(--mist);text-align:center;margin:0}
.email-result{font-size:12px;line-height:1.5;color:var(--mist)}
.email-result .text-link{font-size:12px;margin-top:9px}
/* Keep the paid application compact enough for one viewport. */
#order-dialog{width:min(580px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:hidden}
#order-dialog .modal-inner{padding:22px 26px}
#order-dialog .eyebrow{font-size:8px;margin-bottom:7px}
#order-dialog h2{font-size:34px;line-height:1.05;padding-right:15px}
#order-dialog .modal-lead{font-size:11px;line-height:1.4;margin-top:7px}
#order-dialog .order-summary{gap:15px;padding:10px 0;margin:12px 0}
#order-dialog .order-summary>img{width:46px;height:74px}
#order-dialog .order-summary>div{gap:2px}
#order-dialog .order-summary strong{font-size:23px;line-height:1.1}
#order-dialog .order-summary span,#order-dialog .order-summary small{font-size:9px;line-height:1.35}
#order-dialog .order-summary b{font-size:16px;margin-top:2px}
#order-dialog .order-fields{grid-template-columns:1fr 1fr;gap:9px 12px}
#order-dialog .order-fields .field:last-child{grid-column:auto}
#order-dialog .field{gap:4px;min-width:0}
#order-dialog .field label{font-size:10px}
#order-dialog .field input,#order-dialog .field select{height:34px;padding:6px 9px;font-size:12px}
#order-dialog .check-row{margin:12px 0;font-size:9px;line-height:1.4;gap:8px}
#order-dialog .button{min-height:38px;padding:8px 14px;font-size:11px}
#order-dialog .demo-note{font-size:9px;line-height:1.4;margin:7px 0 0}
#order-dialog #order-edit{font-size:10px;line-height:1.4;margin-top:9px}
#order-dialog .order-result{font-size:10px;line-height:1.4;padding:8px 10px;margin-top:9px}
#order-dialog:has(.order-result:not([hidden])) .modal-lead{display:none}
@media(max-width:620px){
  .email-modal .modal-inner{padding:27px 22px}.email-modal h2{font-size:32px}
  #order-dialog .modal-inner{padding:18px}
  #order-dialog h2{font-size:29px}
  #order-dialog .order-summary strong{font-size:21px}
  #order-dialog .field input,#order-dialog .field select{font-size:16px;height:34px}
  #order-dialog #order-package,#order-dialog #order-format{font-size:11px}
}
@media(max-height:620px){
  #order-dialog .modal-inner{padding:13px 18px}
  #order-dialog .eyebrow,#order-dialog .modal-lead{display:none}
  #order-dialog h2{font-size:27px}
  #order-dialog .order-summary{padding:6px 0;margin:8px 0}
  #order-dialog .order-summary>img{height:54px;width:34px}
  #order-dialog .order-summary strong{font-size:20px}
  #order-dialog .check-row{margin:8px 0}
  #order-dialog #order-edit{margin-top:6px}
}

/* Separate the paid application fields from its submit button. */
#order-form{display:flex;flex-direction:column;gap:14px}
#order-form>.order-fields,#order-form>.button{flex-shrink:0}
#order-form>.button{margin:0}
#order-form>.order-result{margin-top:0}

.form-trap{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.button:disabled{cursor:default;opacity:.7}

/* Mobile package chooser: one full-width card with accessible tabs. */
.receive-tabs{display:none}
.receive-card[hidden]{display:none!important}
.story-photo{flex:0 1 auto;width:min(100%,calc(var(--story-image-height)*1400/788));height:auto;aspect-ratio:1400/788}
.story-photo>img:first-child{display:block;width:100%;height:auto;aspect-ratio:1400/788}
@media(max-width:620px){
  .receive-tabs{display:flex;gap:4px;padding:5px;margin:0 auto 20px;max-width:470px;border:1px solid #d9b66f55;border-radius:99px;background:#121a35}
  .receive-tabs button{flex:1;min-width:0;min-height:44px;padding:10px 8px;border:0;border-radius:99px;background:transparent;color:#c4cad9;font:500 12px/1.3 var(--sans);cursor:pointer}
  .receive-tabs button[aria-selected="true"]{background:var(--gold);color:var(--night)}
  .receive-tabs button:focus-visible{outline:2px solid var(--gold-light);outline-offset:3px}
  .receive-grid{grid-template-columns:minmax(0,1fr);width:100%;max-width:470px;gap:0}
  .receive-card{width:100%;min-width:0;height:auto}
  .receive-card h3{font-size:34px;overflow-wrap:break-word}
  .receive-card .price{font-size:46px}
  .receive-card ul{font-size:14px;line-height:1.65}
}

/* Circular three-item template chooser on the first screen. */
.hero-style-carousel{position:relative;width:min(100% - 44px,300px);margin:8px auto 0}
.hero-style-carousel .style-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px;margin:0;touch-action:pan-y}
.hero-style-carousel .style-chips>.chip{min-width:0;padding-inline:4px;white-space:nowrap;font-size:9px}
.hero-style-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:30px;height:34px;padding:0;border:0;background:transparent;color:var(--gold);font:26px/1 var(--sans);cursor:pointer}
#hero-style-prev{right:calc(100% + 2px)}
#hero-style-next{left:calc(100% + 2px)}
.hero-style-arrow:focus-visible{outline:1px solid var(--gold);border-radius:8px}
@media(max-width:620px){.hero-style-carousel{margin-top:6px}.hero-style-carousel .style-chips>.chip{font-size:8px}}
