#home-entry {
  box-sizing:border-box; width:min(38rem, calc(100% - 2rem)); max-width:none;
  max-height:calc(100dvh - 2rem); overflow:auto; overscroll-behavior:contain;
  position:fixed; inset:0; margin:auto; padding:0; color:#102a43;
  background:#fcf9f3; border:1px solid #c5a67d; border-radius:20px;
  box-shadow:0 22px 64px #102a4340;
}
#home-entry::backdrop {background:rgb(16 42 67 / 48%)}
html:has(#home-entry[open]) {overflow:hidden}
#home-entry .entry-mast {
  padding:clamp(1.3rem,4vw,2.25rem); background:linear-gradient(110deg,#102a43,#312342 60%,#501e43);
  color:white; border-bottom:1px solid #c5a67d;
}
#home-entry .entry-wordmark {display:inline-flex; background:#fffaf2; color:#102a43; border-radius:6px; padding:.35rem .65rem; font-size:1.18rem}
#home-entry .entry-wordmark svg {width:1.6rem;height:1.6rem}
#home-entry .entry-welcome {margin:1.3rem 0 .45rem; color:#f1cfac; font:600 .75rem Arial,sans-serif; letter-spacing:.16em; text-transform:uppercase}
#home-entry h2 {margin:0; max-width:18ch; color:white; font:normal clamp(2rem,4.4vw,3.25rem)/1.04 Georgia,serif; letter-spacing:-.04em; text-wrap:balance}
#home-entry .entry-body {padding:clamp(1.3rem,4vw,2.25rem);font:1rem/1.5 Arial,sans-serif;color:#435466}
#home-entry p {margin:0 0 .85rem;font:inherit;color:inherit}
#home-entry .entry-invite {color:#102a43;font:1.35rem/1.3 Georgia,serif}
#home-entry .entry-privacy,#home-entry .entry-action p {font-size:.875rem}
#home-entry a {color:#501e43;text-decoration:underline}
#home-entry .entry-action {margin-top:1rem;padding-top:1rem;border-top:1px solid #ddcfbb}
#home-entry button {width:100%;padding:.8rem 1rem;border:0;border-radius:6px;background:#501e43;color:white;font:600 1rem/1.4 Arial,sans-serif;cursor:pointer}
#home-entry :is(a,button):focus-visible {outline:3px solid #895376;outline-offset:3px}
#home-entry .entry-mast {text-align:center;padding:1.15rem 1.4rem 1.35rem}
#home-entry .entry-welcome {margin:0 0 .35rem}
#home-entry h2 {font-size:clamp(1.8rem,4vw,2.8rem);margin-inline:auto;max-width:none}
#home-entry h2:focus {outline:none}
#home-entry .entry-body {padding:1.15rem clamp(1rem,4vw,2rem) 1.5rem;container-type:inline-size}
#home-entry .entry-wordmark {width:max-content;margin:auto;display:flex;background:transparent;padding:0;font-size:5.45cqi;gap:.35em}
#home-entry .entry-wordmark svg {width:1.4em;height:auto}
#home-entry .entry-benefits {width:fit-content;margin:.95rem auto 1.15rem;padding:0;list-style:none;color:#102a43}
#home-entry .entry-benefits li {display:flex;align-items:baseline;gap:.65rem;margin:.2rem 0}
#home-entry .entry-benefits li::before {content:'✓';color:#501e43;font-weight:bold}
#home-entry .entry-picker {min-width:0;margin:0;padding:0;border:0}
#home-entry legend {width:100%;text-align:center;padding:0;margin:0 0 .65rem;font:1.4rem Georgia,serif;color:#102a43}
#home-entry .entry-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}
#home-entry .entry-choice {display:block;text-align:center;cursor:pointer;font:1rem/1.2 Georgia,serif;color:#102a43}
#home-entry .entry-tile {position:relative;display:grid;place-items:center;height:4.6rem;background:#fffbf3;border:1px solid #cbb799;border-radius:.65rem;margin-bottom:.7rem;transition:transform .18s}
#home-entry .entry-tile svg {width:2.45rem;height:auto}
#home-entry .myself .entry-tile {background:#122e49}
#home-entry .spouse .entry-tile {background:#35233f}
#home-entry :is(.myself,.spouse) path:last-child {stroke:#fff}
#home-entry .myself path:first-child {stroke:#744398}
#home-entry .spouse path:first-child {stroke:#216398}
#home-entry .entry-tile input {position:absolute;bottom:-.45rem;left:50%;transform:translateX(-50%);margin:0;width:1rem;height:1rem;accent-color:#501e43;cursor:pointer}
#home-entry .entry-tile:has(:checked) {outline:2px solid #501e43;outline-offset:1px}
#home-entry .entry-choice:has(:focus-visible) {outline:3px solid #895376;outline-offset:4px}
#home-entry .entry-action p {font-size:.8125rem;line-height:1.45}
#home-entry button {animation:pms-entry-pulse 3s ease-in-out infinite}
@keyframes pms-entry-pulse {0%,100%{transform:scale(1);box-shadow:0 0 0 3px #501e4314}50%{transform:scale(1.025);box-shadow:0 0 0 6px #501e4324,0 0 16px #501e4335}}
@media(hover:hover){#home-entry .entry-choice:hover .entry-tile {transform:scale(1.035)}}
@media(prefers-reduced-motion:reduce){#home-entry button {animation:none;box-shadow:0 0 0 4px #501e4320}#home-entry .entry-tile {transition:none}}

/* Match the accepted wordmark attribution on the initial welcome screen. */
#home-entry .entry-wordmark{position:relative;margin-bottom:35.4px}
#home-entry .entry-powered{position:absolute;top:100%;right:0;display:flex;align-items:center;gap:4px;font:400 clamp(8px,1.8cqi,12px)/1.2 Georgia,'Times New Roman',serif;letter-spacing:0;white-space:nowrap;color:#102a43}
#home-entry .entry-powered i{display:block;width:55px;height:17px;background:#501e43;mask:url('/assets/quote-bot-mask.png') right center/contain no-repeat;-webkit-mask:url('/assets/quote-bot-mask.png') right center/contain no-repeat;flex:none}

/* Welcome-only direct-entry selectors; reuse the removed button's vertical space. */
#home-entry .entry-choice{color:#102a43;text-decoration:none;display:block}
#home-entry .entry-tile{width:6rem;max-width:100%;height:8.45rem;margin-inline:auto;animation:pms-entry-choice-glow 1.8s ease-in-out infinite;box-shadow:0 0 0 3px #c5a67d66,0 0 16px 5px #89537699}
#home-entry .entry-choice.myself .entry-tile{--entry-glow:#477cbf}
#home-entry .entry-choice.spouse .entry-tile{--entry-glow:#a45dd0}
#home-entry .entry-choice.each .entry-tile{--entry-glow:#b8679d}
#home-entry .entry-choice:focus-visible{outline:3px solid #895376;outline-offset:5px;border-radius:5px}
@keyframes pms-entry-choice-glow{0%,100%{box-shadow:0 0 0 3px color-mix(in srgb,var(--entry-glow),transparent 35%),0 0 12px 4px color-mix(in srgb,var(--entry-glow),transparent 25%)}50%{box-shadow:0 0 0 5px color-mix(in srgb,var(--entry-glow),transparent 10%),0 0 24px 9px color-mix(in srgb,var(--entry-glow),transparent 15%)}}
@media(prefers-reduced-motion:reduce){#home-entry .entry-tile{animation:none;box-shadow:0 0 0 3px var(--entry-glow),0 0 14px 4px color-mix(in srgb,var(--entry-glow),transparent 30%)}}

#home-entry .entry-action p{margin-bottom:0}

/* Welcome selector artwork with labels composed inside each rectangle. */
#home-entry .entry-options{min-height:10.35rem}
#home-entry .entry-tile{position:relative;width:6.9rem;height:8.8725rem;margin-bottom:0}
#home-entry .entry-tile svg{position:absolute;width:3.3075rem;height:auto;left:50%;top:46%;transform:translate(-50%,-50%)}
#home-entry .entry-tile-label{position:absolute;left:6px;right:6px;bottom:9px;text-align:center;font:1rem/1.2 Georgia,serif;text-wrap:balance;color:#102a43}
#home-entry :is(.myself,.spouse) .entry-tile-label{color:#fffaf2}
#home-entry .entry-action p{text-align:center}
#home-entry .entry-action a{white-space:nowrap}

/* Only the relative sizes of the two welcome headline lines change. */
#home-entry .entry-headline-first{font-size:.78em}
#home-entry .entry-headline-second{font-size:1.05em;position:relative;top:4px}

/* Fill the welcome selector row while leaving room above the brightest glow. */
#home-entry .entry-options{gap:1.15rem;min-height:0;padding-top:3.3125rem}
#home-entry .entry-tile{width:100%;max-width:none;height:11.25rem}
#home-entry .entry-tile svg{width:4.134375rem}
#home-entry .entry-tile-label{white-space:nowrap;text-wrap:nowrap}
@media(max-width:600px){#home-entry .entry-tile-label{font-size:clamp(.55rem,3.6cqi,1rem)}}

@media(max-width:360px){#home-entry .entry-tile-label{left:2px;right:2px}}

/* Matching welcome selector dividers and balanced room for the full glow. */
#home-entry .entry-options{border-top:1px solid #ddcfbb;padding-block:1rem}
#home-entry .entry-action{margin-top:0}
#home-entry .entry-tile-label{bottom:calc(9px + 1.2em)}
#home-entry .entry-tile svg{width:5.16796875rem;max-width:calc(100% - 10px)}
#home-entry .entry-mobile-break{display:inline}
@media(max-width:600px){#home-entry .myself .entry-mobile-break{display:inline}}

/* Phone-only label legibility; tablet and desktop remain unchanged. */
@media(max-width:600px){
 #home-entry{width:calc(100% - 16px)}
 #home-entry .entry-body{padding-inline:12px}
 #home-entry .entry-options{gap:10px}
 #home-entry .entry-tile-label{font-size:clamp(13px,3.6vw,16px);left:2px;right:2px;bottom:22px}
 #home-entry .entry-tile svg{width:72px;max-width:calc(100% - 18px);top:42%}
}
@media(max-width:360px){
 #home-entry .entry-body{padding-inline:6px}
 #home-entry .entry-options{gap:6px}
 #home-entry .entry-tile-label{left:1px;right:1px}
}

/* Desktop welcome award overlays the upper-right corner without changing layout. */
#home-entry .entry-corner-award{display:none}
@media(min-width:1025px){#home-entry .entry-corner-award{display:block;position:fixed;width:130px;height:auto;z-index:2;pointer-events:none;transform:scale(.8855);transform-origin:center}}

/* Desktop-only, flush-bottom welcome perspectives; no visible playback controls. */
#home-entry .entry-quote-strip{display:none}
@media(min-width:1025px){
 #home-entry .entry-body{padding-bottom:10px}
 #home-entry .entry-quote-strip{display:block;height:52px;overflow:hidden;background:#fcf9f3;mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 12px),transparent)}
 #home-entry .entry-quote-track{display:flex;width:max-content;height:100%;animation:pms-welcome-quotes 80s linear infinite;will-change:transform}
 #home-entry .entry-quote-group{display:flex;flex:none;align-items:center;gap:24px;padding-right:24px}
 #home-entry .entry-small-quote{width:270px;flex:none;margin:0;text-align:center}
 #home-entry .entry-quote-stars{display:flex;justify-content:center;margin-bottom:3px}
 #home-entry .entry-quote-stars svg{display:block;width:56px;height:9px;fill:#a28048}
 #home-entry .entry-small-quote blockquote{margin:0;color:#53616c;font:400 10.5px/1.3 Arial,Helvetica,sans-serif;letter-spacing:0}
}
@keyframes pms-welcome-quotes{to{transform:translateX(-50%)}}
@media(min-width:1025px) and (prefers-reduced-motion:reduce){
 #home-entry .entry-quote-track{animation:none;transform:none;will-change:auto;width:100%;justify-content:center}
 #home-entry .entry-quote-group{padding:0;width:100%;justify-content:center}
 #home-entry .entry-quote-group[aria-hidden="true"],#home-entry .entry-small-quote:not(:first-child){display:none}
 #home-entry .entry-small-quote{width:calc(100% - 48px)}
}

/* Keep the desktop welcome consent notice on a single centered line. */
@media(min-width:1025px){#home-entry .entry-action p{white-space:nowrap;font-size:11px;letter-spacing:-.12px}}

/* Slightly smaller, tighter desktop welcome benefits only. */
@media(min-width:1025px){#home-entry .entry-benefits{font-size:15px;line-height:1.4}#home-entry .entry-benefits li{margin:.15rem 0}}

/* Match the desktop welcome headline typography without changing selector heading size. */
@media(min-width:1025px){#home-entry legend{font-family:Georgia,serif;font-weight:400;letter-spacing:-.04em;font-size:1.5rem}}

/* Replace only the welcome attribution symbol at its existing height. */
#home-entry .entry-wordmark .entry-powered>.attribution-symbol{display:block;width:19.2453px;height:17px;max-width:none;flex:none}
