:root{
  --home-bg:#f5f8f6;
  --home-card:#fff;
  --home-line:#dbe9df;
  --home-green:#18a45f;
  --home-green-dark:#0f8a4d;
  --home-text:#10223a;
  --home-muted:#697789;
  --home-shadow:0 10px 26px rgba(25,48,64,.075);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.prototype-home-page{background:linear-gradient(180deg,#fff 0,#f6faf7 20%,#eef6f1 100%);color:var(--home-text);overflow-x:hidden}
.prototype-home-page .prototype-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid #e5eee8;box-shadow:0 5px 18px rgba(29,49,64,.05)}
.prototype-home-page .prototype-header-inner{max-width:448px;margin:auto;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.prototype-home-page .prototype-brand{display:flex;align-items:center;gap:11px;min-width:0;text-decoration:none;color:var(--home-text)}
.prototype-home-page .prototype-header-logo{width:52px;height:52px;object-fit:contain;border-radius:13px;flex:0 0 auto;box-shadow:0 6px 16px rgba(25,48,64,.09)}
.prototype-home-page .prototype-brand-copy{min-width:0;display:flex;flex-direction:column}
.prototype-home-page .prototype-brand-copy strong{font-size:1.2rem;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prototype-home-page .prototype-brand-copy small{margin-top:2px;font-size:.72rem;color:#748197;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prototype-home-page .prototype-menu-button{width:43px;height:43px;border:1px solid #dce8e0;border-radius:50%;background:#fff;color:#15253b;font-size:1.35rem;font-weight:700;display:grid;place-items:center;box-shadow:0 4px 12px rgba(25,48,64,.05);cursor:pointer}
.prototype-home-page .prototype-menu{max-width:416px;margin:0 auto 10px;background:#fff;border:1px solid var(--home-line);border-radius:18px;padding:8px;box-shadow:0 14px 28px rgba(25,48,64,.12)}
.prototype-home-page .prototype-menu[hidden]{display:none!important}
.prototype-home-page .prototype-menu>a{display:flex;align-items:center;gap:10px;padding:12px 13px;border-radius:12px;color:#203047;text-decoration:none;font-weight:700;font-size:.9rem}
.prototype-home-page .prototype-menu>a:hover{background:#f0f8f3}
.prototype-home-page .prototype-menu-meta{display:flex;justify-content:center;align-items:center;gap:9px;border-top:1px solid #edf2ef;margin-top:5px;padding:10px 6px 5px;color:#82909d;font-size:.74rem}
.prototype-home-page .prototype-menu-meta a{color:#5e6d7c;text-decoration:none}
.prototype-home-page .prototype-home-container{max-width:448px;margin:0 auto;padding:18px 14px 2px!important}

/* hero */
.prototype-home-page .section-header{position:relative;overflow:hidden;background:linear-gradient(145deg,#f3fff7,#e9f8ef);color:var(--home-text);border:1px solid #cde8d6;border-radius:22px;padding:19px;margin-bottom:16px;box-shadow:var(--home-shadow)}
.prototype-home-page .section-header:before{content:"";position:absolute;width:120px;height:120px;border-radius:50%;background:rgba(24,164,95,.07);right:-42px;top:-58px}
.prototype-home-page .section-header>div{position:relative;z-index:1}
.prototype-home-page .section-header>div>div:first-child{background:#def4e6!important;color:#14995a;border:1px solid #c8e9d3!important}
.prototype-home-page .section-header h2{color:#10223a!important}
.prototype-home-page .section-header p{color:#647488!important}
.prototype-home-page .section-description{font-size:.9rem;line-height:1.55;margin:0;position:relative;z-index:1}

/* all main cards */
.prototype-home-page .section{background:#fff;border:1px solid var(--home-line);border-radius:22px;padding:17px;margin-bottom:16px;box-shadow:var(--home-shadow)}
.prototype-home-page .section-title{display:flex;align-items:center;gap:10px;color:var(--home-text);font-size:1.02rem;font-weight:800;margin-bottom:14px;line-height:1.25;min-width:0}
.prototype-home-page .section-title .section-icon{width:42px;height:42px;min-width:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#eaf9ef,#def4e6);border:1px solid #cfe8d7;box-shadow:none;padding:0}
.prototype-home-page .scanner-beta{background:#eef8f1!important;color:#128d50!important;border:1px solid #cce6d4!important;border-radius:999px;padding:3px 8px;font-size:.65rem;margin-left:auto}

/* selection cards */
.prototype-home-page .grid.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.prototype-home-page .btn.animal-btn,.prototype-home-page .btn.food-btn{display:flex;align-items:center;gap:10px;text-align:left;min-width:0;border:1px solid #dce8e0;background:#fbfdfb;border-radius:17px;padding:13px 11px;box-shadow:none;color:var(--home-text);transition:.18s ease}
.prototype-home-page .btn.animal-btn:hover,.prototype-home-page .btn.food-btn:hover,.prototype-home-page .btn.animal-btn.active,.prototype-home-page .btn.food-btn.active{border-color:#79c99a;background:#ecf8f0;transform:none;box-shadow:0 0 0 3px rgba(24,164,95,.08)}
.prototype-home-page .btn-icon{width:39px;height:39px;min-width:39px;border-radius:50%!important;display:grid;place-items:center;padding:0!important;background:#eef8f1!important}
.prototype-home-page .btn-title{font-weight:800;font-size:.9rem;line-height:1.2}
.prototype-home-page .btn-subtitle{font-size:.68rem;color:#748197;line-height:1.25;margin-top:3px;overflow-wrap:anywhere}

/* form */
.prototype-home-page .form-group{margin-bottom:15px}
.prototype-home-page .form-group:last-child{margin-bottom:0}
.prototype-home-page .form-label{display:flex;align-items:center;gap:8px;color:#24334a;font-size:.88rem;font-weight:800;margin-bottom:7px}
.prototype-home-page .form-label>span:first-child{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#eef8f1!important;padding:0!important}
.prototype-home-page .form-input,.prototype-home-page input[type="number"],.prototype-home-page input[type="text"]{width:100%;min-width:0;border:1px solid #d5e4da;background:#fbfdfc;color:#182940;border-radius:15px;padding:13px 43px 13px 13px;font-size:.95rem;box-shadow:none}
.prototype-home-page .form-input:focus,.prototype-home-page input:focus{outline:none;border-color:#76c796;box-shadow:0 0 0 3px rgba(24,164,95,.09);background:#fff}
.prototype-home-page .input-wrapper{position:relative}
.prototype-home-page .input-suffix{right:14px;color:#718090;font-weight:700}
.prototype-home-page .text-red{color:#d64d53}

/* scanner */
.prototype-home-page .scanner-intro,.prototype-home-page .scanner-note,.prototype-home-page .community-intro{font-size:.82rem;line-height:1.5;color:#6c7b8d;margin-bottom:13px}
.prototype-home-page .scanner-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.prototype-home-page .scanner-action-btn{display:flex;align-items:center;gap:9px;min-width:0;border:1px solid #d5e7dc!important;background:#f6fcf8!important;color:#173047!important;border-radius:16px!important;padding:12px 10px!important;box-shadow:none!important;text-align:left}
.prototype-home-page .scanner-action-btn .scanner-action-icon{width:38px;height:38px;min-width:38px;border-radius:50%;display:grid;place-items:center;background:#dff4e6;color:#118d50}
.prototype-home-page .scanner-action-btn strong{font-size:.8rem;display:block;color:#173047}
.prototype-home-page .scanner-action-btn small{font-size:.64rem;line-height:1.25;color:#748197;display:block;margin-top:2px;overflow-wrap:anywhere}
.prototype-home-page .scanner-panel{margin-top:12px;border:1px solid #dce8e0;border-radius:17px;padding:12px;background:#fbfdfb;overflow:hidden}
.prototype-home-page .scanner-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#203047}
.prototype-home-page .scanner-close-btn{border:0;background:#edf5f0;width:32px;height:32px;border-radius:50%;font-size:1.1rem}
.prototype-home-page .scanner-inline-btn,.prototype-home-page .scanner-photo-btn,.prototype-home-page .scanner-secondary-btn,.prototype-home-page .scanner-rescan-btn{background:linear-gradient(180deg,#20ad68,#129353)!important;color:#fff!important;border:0!important;border-radius:14px!important;box-shadow:none!important;font-weight:800!important}
.prototype-home-page .scanner-photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* community */
.prototype-home-page .community-section{background:linear-gradient(180deg,#fbfffc,#f1faf4);border-color:#cce7d5}
.prototype-home-page .community-confirm-row{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:flex-start;padding:11px;border-radius:14px;background:#fff;border:1px solid #dce8e0;color:#536378;font-size:.78rem;line-height:1.4;margin-bottom:11px}
.prototype-home-page .community-confirm-row input{width:20px;height:20px;margin-top:1px;accent-color:#19a65f}
.prototype-home-page .community-submit-btn{width:100%;border:0;border-radius:15px;padding:13px 12px;background:linear-gradient(180deg,#24ae69,#149652);color:#fff;font-weight:800;box-shadow:0 8px 18px rgba(24,164,95,.14)}
.prototype-home-page .community-submit-btn:disabled{background:#dbe6df;color:#9aa5ad;box-shadow:none}

/* main calculate */
.prototype-home-page .calculate-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:17px;padding:15px;background:linear-gradient(180deg,#19aa62,#0c8b4c);color:#fff;font-size:1rem;font-weight:900;box-shadow:0 10px 22px rgba(24,164,95,.2);margin:2px 0 7px}
.prototype-home-page .calculate-btn:disabled{background:#d8e4dc;color:#8d9b93;box-shadow:none}

/* bottom links */
.prototype-home-page .history-link,.prototype-home-page .faq-btn,.prototype-home-page .amazon-link{display:grid!important;grid-template-columns:45px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-width:0;border:1px solid var(--home-line);background:#fff;border-radius:19px;padding:14px 15px;text-decoration:none;color:var(--home-text);box-shadow:var(--home-shadow);margin:0 0 13px!important}
.prototype-home-page .history-link-icon,.prototype-home-page .faq-icon,.prototype-home-page .amazon-icon{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;background:#eaf9ef;color:#159653;margin:0;padding:0;box-shadow:none}
.prototype-home-page .history-link-text,.prototype-home-page .amazon-text{min-width:0}
.prototype-home-page .history-link-title,.prototype-home-page .amazon-title,.prototype-home-page .faq-btn>div:nth-child(2)>span:first-child{font-size:.92rem;font-weight:800;color:#17253a;overflow-wrap:anywhere}
.prototype-home-page .history-link-subtitle,.prototype-home-page .amazon-desc,.prototype-home-page .faq-btn>div:nth-child(2)>span:last-child{font-size:.69rem!important;line-height:1.35;color:#748197!important;opacity:1!important;margin:2px 0 0;overflow-wrap:anywhere}
.prototype-home-page .history-link-arrow{font-size:1.5rem;color:#2e8d5b;font-weight:700}
.prototype-home-page .amazon-link{background:linear-gradient(180deg,#fffef9,#fffaf0);border-color:#efdfbd}
.prototype-home-page .amazon-icon{background:#fff2d6;color:#bb7d13}
.prototype-home-page .amazon-content{display:contents}
.prototype-home-page .amazon-title svg{display:none}


.prototype-home-page .section-title .section-emoji-duo{width:100%;height:100%;display:flex;align-items:center;justify-content:center;gap:3px;font-size:.78rem;line-height:1;overflow:hidden}
.prototype-home-page .section-title .section-emoji-duo span{display:block;width:auto;min-width:0;text-align:center;transform:none;flex:0 0 auto}
.prototype-home-page .prototype-home-footer{background:transparent;border:0;box-shadow:none;color:#758292;padding:6px 14px 14px;text-align:center;font-size:.78rem}
.prototype-home-page .prototype-home-footer .footer-copy{display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center}
.prototype-home-page .prototype-home-footer .footer-copy p{margin:0}
.prototype-home-page .prototype-home-footer .footer-copy>span{display:block}
.prototype-home-page .prototype-home-footer [data-site-year]{display:inline!important}
.prototype-home-page .prototype-home-footer .footer-links{margin-top:6px}
.prototype-home-page .footer-links{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px}
.prototype-home-page .footer-link{color:#337453;text-decoration:none;font-weight:700}

@media(max-width:390px){
  .prototype-home-page .prototype-header-inner{padding:10px 12px}
  .prototype-home-page .prototype-header-logo{width:48px;height:48px}
  .prototype-home-page .prototype-brand-copy strong{font-size:1.08rem}
  .prototype-home-page .prototype-brand-copy small{font-size:.66rem}
  .prototype-home-page .prototype-menu-button{width:40px;height:40px}
  .prototype-home-page .prototype-home-container{padding:14px 12px 2px!important}
  .prototype-home-page .section,.prototype-home-page .section-header{padding:15px;border-radius:20px;margin-bottom:13px}
  .prototype-home-page .section-title{font-size:.98rem}
  .prototype-home-page .section-title .section-icon{width:39px;height:39px;min-width:39px}
  .prototype-home-page .btn.animal-btn,.prototype-home-page .btn.food-btn{padding:11px 9px;gap:8px}
  .prototype-home-page .btn-icon{width:35px;height:35px;min-width:35px}
  .prototype-home-page .btn-title{font-size:.82rem}
  .prototype-home-page .btn-subtitle{font-size:.62rem}
  .prototype-home-page .scanner-actions{grid-template-columns:1fr}
  .prototype-home-page .scanner-photo-actions{grid-template-columns:1fr}
}

.prototype-home-page .prototype-home-container > .amazon-link:last-of-type{margin-bottom:4px!important}
