:root {
  --cream: #F6F3EE;
  --pine: #025747;
  --deep: #034135;
  --lime: #D0F5A3;
  --sage: #4D9380;
  --soft-sage: #DCEBDD;
  --soft-lime: #E4FFB8;
  --fern: #377A69;
  --warm-cream: #EFE9DF;
  --ink: #1E1E1E;
  --white: #FFFFFF;
  --muted: #52625a;
  --line: #dce2d7;
  --head: Sora, sans-serif;
  --body: 'Nunito Sans', sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--cream); color: var(--deep); font: 400 17px/1.65 var(--body); }
/* Quiet seasonal silhouettes: strongest in the gutters, softened behind content. */
.saasmas-page {
  background-image: linear-gradient(90deg, transparent, #f6f3eea6 32%, #f6f3eec9 50%, #f6f3eea6 68%, transparent), url('/christmas-trees.svg');
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 520px 560px;
  background-position: center top, center 26px;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--fern); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.16; letter-spacing: -.045em; }
h1 { font-size: clamp(42px, 6.4vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 19px; }
svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
.shell { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.shell-wide { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 10px 18px; border-radius: 8px; background: var(--deep); color: var(--cream); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 104px; border-bottom: 1px solid var(--line); }
.wordmark { display: block; padding: 20px; margin-left: -20px; text-decoration: none; }
.wordmark img { display: block; width: 174px; height: auto; }
.nav-wish { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-wish:hover { color: var(--fern); }
.nav-wish span { font-size: 21px; }
.hero { padding: 53px 0 31px; text-align: center; }
.season, .eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; color: var(--pine); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fern); flex-shrink: 0; }
.hero h1 { margin-top: 20px; }
.hero h1 span { color: var(--fern); }
.hero-description { font-size: 18px; color: var(--muted); margin-top: 13px; }
.day-progress { display: flex; justify-content: center; gap: 4px; margin: 25px auto 0; max-width: 255px; }
.day-progress span { height: 4px; flex: 1; border-radius: 9px; background: #d9e3d5; }
.day-progress .past { background: var(--sage); }
.day-progress .active { background: var(--pine); }
.day-label { font-size: 11px; font-weight: 700; color: var(--pine); letter-spacing: .025em; margin-top: 7px; font-variant-numeric: tabular-nums; }
.day-label span { color: var(--muted); margin-left: 4px; }

.gift-stage { position: relative; aspect-ratio: 16 / 9; isolation: isolate; perspective: 1200px; background: var(--deep); border-radius: 24px; box-shadow: 0 16px 36px #0341350d; overflow: hidden; }
.player { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(ellipse at 90% 0%, #256959, transparent 60%), var(--deep); color: var(--cream); }
.player::before { content: ''; position: absolute; bottom: -65%; right: -12%; width: 60%; height: 120%; border-radius: 50% 50% 0 0; border: 1px solid #D0F5A32a; pointer-events: none; }
.player-content { display: grid; justify-items: center; gap: 13px; position: relative; }
.player .mini { color: var(--lime); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }
.play { background: var(--lime); color: var(--deep); border: 0; border-radius: 50%; width: 72px; height: 72px; display: grid; place-items: center; margin: 8px 0; transition: transform .2s var(--ease), background .2s; }
.play:hover { transform: scale(1.07); background: var(--soft-lime); }
.play svg { width: 26px; height: 26px; stroke: none; fill: currentColor; margin-left: 3px; }
.player h2 { font-size: clamp(20px, 3.5vw, 30px); }
.host { font-size: 14px; color: var(--soft-sage); }
.connection-label { font-size: 11px; color: var(--lime); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 2; }
.player video:focus-visible { outline-offset: -5px; outline-color: var(--lime); }
.wrapping { position: absolute; inset: 0; z-index: 3; overflow: hidden; perspective: 900px; pointer-events: none; }
.paper { position: absolute; inset: 0; background-color: var(--pine); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cg fill='none' stroke='%23D0F5A3' stroke-width='1.2' opacity='.22' stroke-linecap='round'%3E%3Cpath d='M21 10v22M10 21h22M13 13l16 16m0-16L13 29M78 73v22M67 84h22M70 76l16 16m0-16L70 92'/%3E%3Cpath d='M80 12q0 9-9 9 9 0 9 9 0-9 9-9-9 0-9-9zM23 77q0 7-7 7 7 0 7 7 0-7 7-7-7 0-7-7z'/%3E%3C/g%3E%3Ccircle cx='50' cy='53' r='1.4' fill='%23D0F5A3' opacity='.25'/%3E%3C/svg%3E"), linear-gradient(130deg, #256959, #025747 45%, #034135); backface-visibility: hidden; }
.paper.left { clip-path: polygon(0 0,50% 0,49% 12%,51% 22%,49% 32%,51% 44%,49% 55%,51% 67%,49% 78%,51% 89%,50% 100%,0 100%); transform-origin: left center; }
.paper.right { clip-path: polygon(50% 0,100% 0,100% 100%,50% 100%,51% 89%,49% 78%,51% 67%,49% 55%,51% 44%,49% 32%,51% 22%,49% 12%); transform-origin: right center; }
.ribbon { position: absolute; box-shadow: 0 4px 14px #00291f38; }
.ribbon.vertical { top: 0; bottom: 0; left: calc(50% - 26px); width: 52px; background: linear-gradient(90deg, #b0db83, #e3ffc0 22%, #d0f5a3 48%, #aed887); }
.ribbon.horizontal { left: 0; right: 0; top: calc(50% - 22px); height: 44px; background: linear-gradient(180deg, #b1d986, #e6ffc9 22%, #d0f5a3 60%, #abd480); }
.bow { position: absolute; left: 50%; top: 50%; width: clamp(126px, 27%, 205px); height: auto; transform: translate(-50%, -60%); filter: drop-shadow(0 5px 3px #00291f55); }
.gift-corner { position: absolute; left: 27px; top: 24px; display: flex; flex-direction: column; color: var(--cream); font-size: 12px; line-height: 1.5; font-weight: 600; }
.gift-corner span:last-child { color: var(--lime); font-size: 10px; letter-spacing: .06em; margin-top: 3px; }
.open-gift { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; padding: 0 12px 7%; background: transparent; border: 0; color: var(--deep); width: 100%; border-radius: 24px; }
.open-gift:focus-visible { outline-offset: -7px; outline-color: var(--lime); }
.unwrap-cta { display: flex; align-items: center; gap: 10px; background: var(--cream); padding: 12px 23px; border-radius: 100px; font-weight: 700; font-size: 15px; box-shadow: 0 5px 18px #00291f32; transition: transform .25s var(--ease), background .2s; }
.open-gift:hover .unwrap-cta { transform: translateY(-3px); background: var(--white); }
.cta-arrow { font-size: 20px; margin-left: 8px; }
.unwrap-sub { color: var(--cream); font-size: 12px; }
.stage-caption { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 53px; padding: 12px 0; }
.stage-note { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.stage-note svg { width: 16px; height: 16px; stroke: var(--fern); }
.replay { background: none; border: 0; color: var(--pine); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding: 4px; }
.replay span { margin-left: 4px; }
.opening .open-gift { pointer-events: none; animation: tag-away .3s forwards; }
.opening .gift-corner { animation: tag-away .3s forwards; }
.opening .bow { animation: bow-away .62s cubic-bezier(.3,.7,.3,1) forwards; }
.opening .ribbon.vertical { animation: vertical-away .65s .1s forwards; }
.opening .ribbon.horizontal { animation: horizontal-away .65s .12s forwards; }
.opening .paper.left { animation: paper-left .78s .38s cubic-bezier(.3,.05,.2,1) forwards; }
.opening .paper.right { animation: paper-right .78s .46s cubic-bezier(.3,.05,.2,1) forwards; }
.unwrapped .wrapping, .unwrapped .open-gift { display: none; }
.confetti { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: 50%; top: 50%; width: 8px; height: 13px; border-radius: 2px; background: var(--c); animation: burst .85s cubic-bezier(.12,.5,.4,1) forwards; transform: translate(-50%, -50%); }
@keyframes tag-away { to { opacity: 0; transform: translateY(12px); } }
@keyframes bow-away { 25% { transform: translate(-50%, -70%) rotate(-8deg) scale(1.06); } to { transform: translate(-50%, -230%) rotate(24deg) scale(.65); opacity: 0; } }
@keyframes vertical-away { to { transform: translateY(-115%) rotate(8deg); opacity: 0; } }
@keyframes horizontal-away { to { transform: translateX(110%) rotate(-7deg); opacity: 0; } }
@keyframes paper-left { 25% { transform: rotateY(-12deg) translateX(-1%); } to { transform: rotateY(-70deg) translateX(-120%) rotate(-8deg); opacity: 0; } }
@keyframes paper-right { 25% { transform: rotateY(12deg) translateX(1%); } to { transform: rotateY(70deg) translateX(120%) rotate(8deg); opacity: 0; } }
@keyframes burst { from { opacity: 1; transform: translate(-50%, -50%) rotate(0); } to { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.gift-details { padding-top: 23px; animation: appear .45s var(--ease) both; }
.prompt-panel { padding: 30px; background: var(--warm-cream); border: 1px solid #e3ddd2; border-radius: 22px; }
.prompt-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.prompt-heading .eyebrow { justify-content: flex-start; font-size: 10px; margin-bottom: 10px; }
.prompt-heading h2 { font-size: clamp(22px, 3.4vw, 28px); max-width: 470px; line-height: 1.27; }
.prompt-badge { display: block; border-radius: 99px; background: var(--soft-sage); color: var(--deep); font-size: 10px; font-weight: 700; padding: 6px 11px; white-space: nowrap; margin-top: 3px; }
.prompt-intro { font-size: 15px; color: var(--muted); line-height: 1.65; margin-top: 13px; max-width: 630px; }
.prompt-instruction { font-size: 12px; color: var(--pine); margin-top: 12px; }
.prompt-download { color: var(--pine); font-size: 11px; font-weight: 700; text-underline-offset: 4px; white-space: nowrap; }
.prompt-download:hover { color: var(--fern); }
.prompt-download span { margin-left: 5px; }
.prompt-box { margin-top: 21px; border: 1px solid #cdd5c8; border-radius: 12px; overflow: hidden; background: var(--cream); }
.prompt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #dce2d7; padding: 11px 15px; background: #f0eee7; }
.prompt-filename { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.prompt-filename svg { width: 15px; height: 15px; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #02574730; border-radius: 99px; padding: 7px 12px; min-height: 36px; background: var(--pine); color: var(--cream); font-size: 11px; font-weight: 700; white-space: nowrap; }
.copy-button:hover { background: var(--deep); }
.copy-button svg { width: 13px; height: 13px; }
.prompt-text { display: block; width: 100%; height: 320px; min-height: 220px; border: 0; border-radius: 0; padding: 22px; resize: vertical; background: transparent; color: var(--deep); font: 400 12px/1.85 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.prompt-text::selection { background: var(--lime); color: var(--deep); }
.prompt-text:focus-visible { outline-offset: -4px; }
.prompt-footnote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.prompt-footnote span { white-space: nowrap; }
.gift-summary { text-align: center; padding: 47px 0 30px; }
.gift-summary .eyebrow { font-size: 11px; margin-bottom: 11px; }
.gift-summary h2 { font-size: clamp(27px, 4vw, 35px); }
.gift-summary > p:not(.link-note) { max-width: 590px; margin: 13px auto 22px; color: var(--muted); font-size: 16px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 22px; border: 0; text-decoration: none; color: var(--soft-lime); background: var(--pine); font-size: 14px; font-weight: 700; border-radius: 100px; padding: 14px 24px; min-height: 50px; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: var(--deep); transform: translateY(-1px); }
.btn:disabled { opacity: .7; transform: none; }
.btn span { font-size: 20px; line-height: 1; }
.link-note { font-size: 11px; color: var(--muted); margin-top: 10px; }
a.not-connected { background: var(--soft-sage); color: var(--deep); }
a.not-connected:hover { background: #d1e3d1; }
.resources { border-top: 1px solid var(--line); padding-top: 21px; margin-bottom: 24px; }
.resources h3 { font: 700 11px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.resource { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 17px 0; text-decoration: none; font-weight: 700; font-size: 15px; }
.resource small { font-weight: 400; color: var(--muted); display: block; font-size: 12px; margin-top: 3px; }
.resource:hover { color: var(--fern); }
.resource-end { display: flex; align-items: center; gap: 16px; }
.resource-status { font-size: 10px; font-weight: 600; color: var(--muted); }
.resource-arrow { font-size: 21px; }

.wish { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); margin-top: 40px; padding: 42px 38px 34px; border-radius: 24px; background: var(--soft-sage); }
.wish-decoration { position: absolute; right: -82px; top: -18px; height: 230px; width: 210px; border: 1px solid #02574716; border-radius: 110px 110px 0 0; transform: rotate(-18deg); z-index: -1; }
.wish-intro { text-align: center; }
.wish-intro .eyebrow { font-size: 10px; margin-bottom: 12px; }
.wish-intro h2 { font-size: 38px; }
.wish-intro > p:last-child { max-width: 550px; margin: 15px auto 0; color: #43594c; font-size: 16px; }
.wish-form { text-align: left; margin: 29px auto 0; display: grid; gap: 18px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field textarea { padding: 12px 14px; border-radius: 10px; border: 1px solid #bacfbb; background: var(--cream); color: var(--deep); width: 100%; min-height: 49px; font-size: 14px; }
.field input::placeholder, .field textarea::placeholder { color: #64736a; }
.field textarea { min-height: 115px; resize: vertical; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 3px; }
.form-note { font-size: 11px; color: #43594c; }
.connection-note { font-size: 11px; color: #43594c; text-align: center; }
.form-status { font-size: 13px; padding: 12px 15px; border-radius: 10px; background: var(--cream); color: var(--deep); }
.error { color: #923a2a !important; }
.success { color: var(--pine) !important; }
.footer { text-align: center; padding: 38px 0 44px; font-size: 13px; color: var(--deep); }
.footer > p:first-child { font-weight: 600; }
.footer-brand { font-size: 12px; color: var(--muted); margin-top: 7px; }
.footer a { font-weight: 700; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-link { display: inline-block; margin-top: 21px; font-size: 10px; color: var(--fern); }
.footer-link span { margin-left: 8px; }
.toast { position: fixed; z-index: 40; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 13px 20px; border-radius: 12px; background: var(--deep); color: var(--cream); font-size: 13px; box-shadow: 0 6px 20px #0002; }
.noscript-note { padding: 24px; font-size: 14px; }

@media (max-width: 620px) {
  .saasmas-page { background-size: 100% 100%, 360px 420px; }
  .shell { width: calc(100% - 32px); }
  .shell-wide { width: calc(100% - 40px); }
  .mast { min-height: 89px; }
  .wordmark img { width: 160px; }
  .nav-wish { font-size: 12px; gap: 10px; }
  .hero { padding: 36px 0 25px; }
  .season { font-size: 9px; letter-spacing: .1em; gap: 7px; }
  .hero h1 { font-size: clamp(36px, 8vw, 49px); margin-top: 16px; }
  .hero-description { font-size: 15px; margin-top: 11px; }
  .day-progress { margin-top: 21px; max-width: 222px; gap: 3px; }
  .gift-stage { border-radius: 17px; }
  .ribbon.vertical { width: 36px; left: calc(50% - 18px); }
  .ribbon.horizontal { height: 30px; top: calc(50% - 15px); }
  .bow { width: 29%; }
  .gift-corner { left: 18px; top: 16px; font-size: 10px; }
  .gift-corner span:last-child { font-size: 9px; }
  .open-gift { padding-bottom: 5%; gap: 6px; }
  .unwrap-cta { padding: 8px 16px; font-size: 12px; gap: 7px; }
  .unwrap-cta svg { width: 16px; height: 16px; }
  .cta-arrow { font-size: 16px; margin-left: 5px; }
  .unwrap-sub { font-size: 9px; }
  .player { padding: 16px; }
  .player-content { gap: 6px; }
  .player .mini { font-size: 8px; }
  .play { width: 46px; height: 46px; margin: 4px 0; }
  .play svg { width: 19px; height: 19px; }
  .player h2 { font-size: 19px; }
  .host { font-size: 11px; }
  .connection-label { font-size: 9px; }
  .stage-note { font-size: 11px; }
  .stage-caption { gap: 7px; }
  .gift-details { padding-top: 17px; }
  .prompt-panel { padding: 22px 17px; border-radius: 17px; }
  .prompt-heading { flex-direction: column; gap: 11px; }
  .prompt-heading h2 { font-size: 24px; }
  .prompt-badge { margin-top: 0; }
  .prompt-intro { font-size: 13px; }
  .prompt-toolbar { padding: 10px; gap: 9px; }
  .prompt-filename { font-size: 9px; }
  .prompt-filename svg { display: none; }
  .copy-button { font-size: 10px; padding: 7px 10px; }
  .prompt-text { padding: 16px; font-size: 11px; height: 300px; }
  .prompt-footnote { font-size: 9px; }
  .gift-summary { padding-top: 34px; }
  .resource { font-size: 13px; }
  .resource small { font-size: 11px; }
  .resource-status { font-size: 9px; }
  .resource-end { gap: 8px; }
  .wish { margin-top: 27px; padding: 31px 21px 26px; border-radius: 18px; }
  .wish-intro h2 { font-size: 34px; }
  .wish-intro > p:last-child { font-size: 14px; }
  .two-fields { grid-template-columns: 1fr; gap: 15px; }
  .wish-form { gap: 15px; margin-top: 24px; }
  .field input, .field textarea { font-size: 16px; }
  .form-bottom { flex-direction: column-reverse; gap: 12px; }
  .form-bottom .btn { width: 100%; }
}
@media (max-width: 360px) {
  .shell-wide { width: calc(100% - 32px); }
  .nav-wish { gap: 5px; }
  .nav-wish span { font-size: 16px; }
  .wordmark img { width: 160px; }
  .hero h1 { font-size: 34px; }
  .unwrap-cta { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition: none !important; scroll-behavior: auto !important; }
}
