/* A seed-to-harvest welcome and a pocket garden for the journey back up. */
.crop-symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.agri-loader {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center;
  background: #f8f6ed; color: var(--forest); opacity: 0; visibility: hidden;
  pointer-events: none; transition: opacity .32s ease, visibility .32s;
}
.agri-loader::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, #e5ead966, transparent 58%),
    repeating-linear-gradient(115deg, transparent 0 79px, #7e926009 80px 81px, transparent 82px 160px);
}
.agri-loading .agri-loader { opacity: 1; visibility: visible; pointer-events: auto; }
html:not(.agri-loading) .agri-loader * { animation: none; }
.agri-loader__inner { position: relative; width: min(450px, calc(100% - 40px)); padding: 35px 0; text-align: center; }
.agri-loader__company { display: block; font-size: 11px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
.seed-scene { position: relative; width: 320px; max-width: 100%; margin: 28px auto 22px; }
.seed-scene > svg { position: relative; display: block; width: 100%; overflow: visible; }
.seed-scene__orbit { position: absolute; width: 232px; height: 232px; border: 1px solid #c7cfb866; border-radius: 50%; left: calc(50% - 116px); top: -2px; }
.seed-scene__orbit::before, .seed-scene__orbit::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #a9b58e; }
.seed-scene__orbit::before { left: 16px; top: 45px; }
.seed-scene__orbit::after { right: 9px; bottom: 58px; background: #d6ba79; }
.seed-scene__coordinate { display: block; margin-top: 2px; color: #7b876a; font-size: 8px; letter-spacing: .16em; }
.seed-sun { transform-origin: 219px 69px; animation: seed-sunrise .65s ease-out both; }
.seed-sprout { transform-origin: 160px 173px; animation: seed-sway 3s .65s ease-in-out infinite; }
.seed-stem { stroke-dasharray: 1; stroke-dashoffset: 0; animation: seed-draw .5s .05s ease-out both; }
.seed-leaf { transform-box: fill-box; transform-origin: 100% 100%; animation: seed-unfurl .44s .13s cubic-bezier(.2,.8,.3,1) both; }
.seed-leaf--two { transform-origin: 0 100%; animation-delay: .2s; }
.seed-leaf--three { animation-delay: .26s; }
.seed-leaf--four { transform-origin: 0 100%; animation-delay: .32s; }
.seed-vein { animation: seed-appear .4s .35s both; }
.seed-roots path { stroke-dasharray: 1; animation: seed-draw .5s ease-out both; }
.seed-kernel { animation: seed-appear .3s both; }
.seed-side-crop { transform-origin: 77px 157px; animation: seed-sway 3.5s ease-in-out infinite; }
.seed-side-crop--right { transform-origin: 252px 158px; animation-delay: -.9s; }
.seed-drops { animation: seed-rain 2.5s ease-in infinite; }
.agri-loader__title { font-family: var(--serif); font-size: clamp(28px, 5vw, 37px); line-height: 1.25; color: var(--forest); letter-spacing: -.015em; }
.agri-loader__dot { color: var(--green); }
.agri-loader__furrows { display: flex; justify-content: center; gap: 5px; margin: 23px auto 18px; }
.agri-loader__furrows span { width: 25px; height: 3px; border-radius: 3px; background: #b1bf96; animation: seed-furrow 1.4s ease-in-out infinite; }
.agri-loader__furrows span:nth-child(2) { animation-delay: .18s; }
.agri-loader__furrows span:nth-child(3) { animation-delay: .36s; }
.agri-loader__tagline { font-size: 12px; color: #78836c; }

.crop-top {
  --crop-progress: 0;
  position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 40; width: 70px; height: 70px; padding: 0; border: 1px solid #d3ddc7;
  border-radius: 48% 48% 44% 44%; background: #faf9f0; color: var(--forest);
  box-shadow: 0 7px 24px #173b251c; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(16px) scale(.92);
  transition: opacity .25s ease, visibility .25s, transform .25s ease, box-shadow .2s;
}
.crop-top[hidden] { display: none !important; }
.crop-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.whatsapp ~ .crop-top { bottom: calc(88px + env(safe-area-inset-bottom)); }
.crop-top__progress { position: absolute; inset: -5px; width: 78px; height: 78px; overflow: visible; transform: rotate(-90deg); pointer-events: none; }
.crop-top__track { stroke: #d3ddc7; stroke-width: 1; }
.crop-top__read { stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--crop-progress)); }
.crop-top__garden { position: absolute; inset: 5px 10px 19px; display: grid; place-items: center; }
.crop-top__crop { position: relative; z-index: 1; display: block; width: 44px; height: 44px; overflow: visible; }
.crop-top__soil { position: absolute; width: 35px; height: 5px; border-radius: 50%; bottom: -2px; background: #d9ccb4; }
.crop-top__arrow { position: absolute; right: -3px; top: -4px; width: 23px; height: 23px; background: var(--green); color: white; border: 2px solid #faf9f0; border-radius: 50%; display: grid; place-items: center; }
.crop-top__arrow svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.crop-top__label { position: absolute; left: 0; right: 0; bottom: 5px; font-size: 8px; line-height: 1.2; font-weight: 700; letter-spacing: .15em; }
.crop-top__tooltip { position: absolute; right: calc(100% + 17px); top: 50%; transform: translate(6px, -50%); text-align: left; white-space: nowrap; background: #faf9f0; border: 1px solid #dbe1cf; padding: 12px 16px; border-radius: 9px 9px 2px 9px; box-shadow: 0 5px 20px #173b2510; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s, transform .2s; }
.crop-top__tooltip strong { display: block; font: 400 17px/1.3 var(--serif); }
.crop-top__tooltip > span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.crop-top:focus-visible { outline: 3px solid var(--green); outline-offset: 8px; }
.crop-top:focus-visible .crop-top__tooltip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
@media (hover: hover) {
  .crop-top.is-visible:hover { transform: translateY(-4px); box-shadow: 0 10px 28px #173b2526; }
  .crop-top:hover .crop-top__tooltip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
}
@media (max-width: 700px) {
  .crop-top { width: 60px; height: 60px; right: max(19px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); }
  .whatsapp ~ .crop-top { bottom: calc(79px + env(safe-area-inset-bottom)); }
  .crop-top__progress { width: 68px; height: 68px; }
  .crop-top__garden { inset: 3px 8px 18px; }
  .crop-top__crop { width: 37px; height: 37px; }
  .crop-top__soil { width: 29px; }
  .crop-top__tooltip { display: none; }
  .seed-scene { width: 285px; margin-top: 22px; }
  .seed-scene__orbit { width: 210px; height: 210px; left: calc(50% - 105px); }
}
@keyframes seed-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes seed-unfurl { from { transform: scale(.05) rotate(18deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes seed-sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes seed-sunrise { from { transform: translateY(15px) scale(.8); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes seed-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes seed-rain { 0% { transform: translateY(-8px); opacity: 0; } 20% { opacity: .7; } 65%, 100% { transform: translateY(25px); opacity: 0; } }
@keyframes seed-furrow { 0%, 100% { transform: scaleX(.65); background: #b1bf96; } 50% { transform: scaleX(1); background: var(--green); } }
@media (prefers-reduced-motion: reduce) {
  .agri-loader, .crop-top, .crop-top__tooltip { transition: none; }
  .agri-loader *, .agri-loader *::before, .agri-loader *::after { animation: none !important; }
}
@media print { .agri-loader, .crop-top { display: none !important; } }
