:root{color-scheme:light;--ink:#3c5a6e;--muted:#647f91;--line:#8ca4b3}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:url("/images/bodyGradientBackground.png") repeat-x,url("/images/bodyBackground.png") repeat;color:var(--ink);font-family:Lato,sans-serif;font-weight:300;letter-spacing:1px;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
button{font:inherit;color:inherit;cursor:pointer}
a:focus-visible,button:focus-visible{outline:2px solid #3482b1;outline-offset:5px;border-radius:4px}
.skip-link{position:absolute;left:12px;top:-60px;z-index:50;background:#fff;padding:12px}.skip-link:focus{top:12px}
.intro{text-align:center;padding:65px 24px 28px}
.intro h1{font-size:clamp(26px,3vw,36px);line-height:1;font-weight:300;margin:0}
.intro>p{font-size:clamp(17px,2.3vw,27px);line-height:1;margin:0}
.garden-tools{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:30px;font-size:12px;letter-spacing:.4px;color:var(--muted)}
#motion{display:none!important;border:1px solid #d6e0e6;border-radius:20px;padding:7px 13px;background:white}
#motion:hover{background:#edf3f6}
#status{text-align:center;padding:20px;line-height:1.7}
#status:empty{display:none}
#status button{margin-left:12px}
#garden{position:relative;max-width:1120px;margin:0 auto;isolation:isolate;visibility:hidden}
#garden.ready{visibility:visible}
#plant{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:-1}
#stem{fill:none;stroke:var(--ink);stroke-width:1.2;stroke-linecap:round}
#blossom{position:absolute;width:80px;height:84px;background:transparent;border:0;padding:0;transform-origin:0 100%;touch-action:manipulation}
#blossom svg{display:block;width:100%;height:100%;overflow:hidden}
.group-title{position:absolute;margin:0;font-size:clamp(30px,4.7vw,64px);line-height:1.2;font-weight:100;letter-spacing:1px;white-space:nowrap;padding:0 0 24px 35px;background:url('/TheKeptPromise/images/titleLeaf-right.png') left bottom no-repeat}
.group-title.left{padding:0 35px 24px 0;background-image:url('/TheKeptPromise/images/titleLeaf-left.png');background-position:right bottom}
.app-leaf{position:absolute;will-change:transform}
.leaf-content{display:flex;align-items:flex-start;gap:20px;transform-origin:var(--origin);}
.app-leaf.left .leaf-content{flex-direction:row-reverse;text-align:right}
.app-leaf.is-wiggling .leaf-content{animation:wiggle .9s ease-in-out}
.icon-wrap{position:relative;flex-shrink:0;width:128px}
.icon-wrap::before{content:"";position:absolute;left:-20px;top:56px;width:91px;height:90px;background:url('/TheKeptPromise/images/appLeaf-right.png') left top / 100% 100% no-repeat;pointer-events:none}
.left .icon-wrap::before{left:auto;right:-20px;background-image:url('/TheKeptPromise/images/appLeaf-left.png')}
.app-icon{display:block;width:128px;height:128px;position:relative;z-index:1}
.app-icon img{display:block;width:100%;height:100%;object-fit:contain}
.app-copy{min-width:0;flex:1;padding-top:2px}
.app-copy h3{font-size:22px;line-height:1.2;font-weight:300;margin:0 0 9px;overflow-wrap:anywhere}
.app-copy p{font-size:14px;line-height:1.5;margin:0;letter-spacing:1px}
.app-links{display:flex;flex-wrap:wrap;gap:2px;margin-top:13px}
.left .app-links{justify-content:flex-end}
.app-links a{font-size:11px;line-height:28px;padding:0 12px;background:#e3ebf0;font-weight:400}
.app-links a:first-child{border-radius:16px 0 0 16px}
.app-links a:last-child{border-radius:0 16px 16px 0}
.app-links a:only-child{border-radius:16px}
.app-links a:hover{background:var(--ink);color:white;text-decoration:none}
.platform-badges{position:absolute;right:-12px;top:-13px;display:flex;gap:4px}
.platform-badge{display:flex;align-items:center;gap:4px;padding:5px 7px;border:2px solid white;border-radius:20px;background:linear-gradient(135deg,#6459d9,#d250a0);color:white;font-size:10px;font-weight:600;box-shadow:0 2px 12px #975cd449;animation:glimmer 3s ease-in-out infinite}
.platform-badge svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
.roots{position:absolute;bottom:0;width:202px;height:44px;background:url('/images/spriteGenerals.png') 0 -130px no-repeat;transform:translateX(-50%)}
#footer.tkp-site-footer{margin-top:35px;color:var(--ink)}
.fallback{text-align:center;padding:40px}
@keyframes wiggle{0%,100%{transform:rotate(0)}20%{transform:rotate(-3deg)}45%{transform:rotate(2.5deg)}70%{transform:rotate(-1.5deg)}}
@keyframes glimmer{50%{box-shadow:0 0 17px #975cd489;filter:brightness(1.16)}}
.motion-paused *{animation:none!important}
@media(max-width:700px){
 .roots{width:44px;height:18px;background:none;border-bottom:1px solid var(--line);border-radius:50%}.intro{padding-top:35px}.garden-tools{flex-direction:column;gap:12px;margin-top:20px}
 #garden{margin:0 12px}.group-title{font-size:clamp(24px,5.5vw,35px);letter-spacing:0;white-space:normal;max-width:calc(100% - 48px)}
 .leaf-content{gap:13px}.icon-wrap,.app-icon{width:72px}.app-icon{height:72px}.icon-wrap::before{width:64px;height:63px;top:32px;left:-14px}.left .icon-wrap::before{left:auto;right:-14px}
 .app-copy h3{font-size:20px}.app-copy p{font-size:13px;line-height:1.55}.app-links a{padding:0 10px}
 .platform-badges{right:-6px;top:-18px;flex-direction:column;gap:0}.platform-badge{font-size:9px;padding:2px 4px}

}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Effects stay decorative: pointer and keyboard actions still reach app links. */
.app-effect{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:3}
.app-effect-sand{z-index:0}
.app-leaf.effect-playing{z-index:4}
.motion-paused .app-effect{display:none}
@media(prefers-reduced-motion:reduce){.app-effect{display:none}}
