/* Home section 3: "try it" screenshot cards + the pop-up (templates/_home_try.html, 2026-11-20).
   Desktop: a browser-window shot. Phone: a phone shot. The yellow sticker invites the click. */
.ht-card{position:relative;display:block;width:100%;padding:0 0 26px;border:0;background:none;cursor:pointer;font:inherit;text-align:left;color:inherit}
.ht-frame{display:block;position:relative;border-radius:14px;overflow:hidden;background:#fff;
  box-shadow:8px 8px 0 var(--ink),0 1px 2px rgba(25,31,51,.06),0 18px 40px -18px rgba(25,31,51,.22);transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s}
.ht-chrome{display:flex;align-items:center;gap:7px;height:34px;padding:0 14px;background:#2a3148}
.ht-chrome i{width:10px;height:10px;border-radius:50%;background:#ff5f57}
.ht-chrome i:nth-child(2){background:#febc2e} .ht-chrome i:nth-child(3){background:#28c840}
.ht-chrome b{margin:0 auto;padding:3px 14px;border-radius:6px;background:rgba(249,246,238,.1);color:rgba(249,246,238,.72);font-size:12px;font-weight:600}
.ht-frame picture,.ht-frame img{display:block;width:100%}
.ht-frame img{aspect-ratio:1180/740;object-fit:cover;object-position:top}
.ht-card:hover .ht-frame,.ht-card:focus-visible .ht-frame{transform:translate(-3px,-3px);box-shadow:11px 11px 0 var(--ink),0 1px 2px rgba(25,31,51,.06),0 22px 44px -18px rgba(25,31,51,.26)}
.ht-card:focus-visible{outline:none}
.ht-card:focus-visible .ht-frame{outline:3px solid var(--hl);outline-offset:4px}

.ht-sticker{position:absolute;right:22px;bottom:0;display:inline-flex;align-items:center;gap:9px;padding:13px 20px 13px 16px;
  background:var(--hl);color:var(--ink);border-radius:999px;box-shadow:4px 4px 0 var(--ink);
  font-size:17px;font-weight:900;letter-spacing:-.01em;white-space:nowrap;transform:rotate(-3deg);animation:ht-nudge 2.6s ease-in-out infinite}
.ht-sticker svg{width:24px;height:24px;flex:none;animation:ht-tap 2.6s ease-in-out infinite;transform-origin:50% 90%}
.ht-say-m{display:none}
.ht-card:hover .ht-sticker{animation:none;transform:rotate(-3deg) scale(1.06)}
@keyframes ht-nudge{0%,70%,100%{transform:rotate(-3deg)}78%{transform:rotate(-3deg) translateY(-5px)}86%{transform:rotate(-3deg)}92%{transform:rotate(-3deg) translateY(-2px)}}
@keyframes ht-tap{0%,70%,100%{transform:none}80%{transform:scale(.82) translateY(2px)}}

/* phones: a phone-shaped shot, centred */
@media(max-width:759px){
  .ht-card{max-width:300px;margin:0 auto;padding-bottom:30px}
  .ht-frame{border-radius:34px;border:8px solid var(--ink);box-shadow:6px 6px 0 var(--hl)}
  .ht-chrome{display:none}
  .ht-frame img{aspect-ratio:390/760;border-radius:26px}
  .ht-sticker{right:50%;transform:translateX(50%) rotate(-3deg);animation:none;font-size:16px}
  .ht-card:hover .ht-sticker{transform:translateX(50%) rotate(-3deg)}
  .ht-say-d{display:none} .ht-say-m{display:inline}
}
@media(hover:none){.ht-say-d{display:none} .ht-say-m{display:inline}}

/* the pop-up: phones get a full-height sheet, wide screens a centred window */
.ht-pop{position:fixed;inset:0;z-index:90}
.ht-pop[hidden]{display:none}
html.ht-pop-on,html.ht-pop-on body{overflow:hidden}
.ht-pop-scrim{position:absolute;inset:0;background:rgba(25,31,51,.62)}
.ht-pop-win{position:absolute;left:0;right:0;bottom:0;top:max(10px,env(safe-area-inset-top,0px));display:flex;flex-direction:column;
  background:var(--paper);border-radius:18px 18px 0 0;overflow:hidden;box-shadow:0 -10px 40px rgba(0,0,0,.3)}
.ht-pop-bar{flex:none;display:flex;align-items:center;gap:10px;height:48px;padding:0 6px 0 16px;background:var(--ink);color:var(--paper)}
.ht-pop-dots{display:none}
.ht-pop-t{flex:1;min-width:0;font-size:15px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ht-pop-x{flex:none;width:44px;height:44px;display:grid;place-items:center;border:0;background:none;color:var(--paper);cursor:pointer;border-radius:10px}
.ht-pop-x svg{width:22px;height:22px}
.ht-pop-x:focus-visible{outline:2px solid var(--hl);outline-offset:-4px}
.ht-pop-body{flex:1;min-height:0;position:relative;background:#f9f6ee}
.ht-pop-frame{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.ht-pop-foot{flex:none;display:flex;align-items:center;gap:14px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));
  background:#fff;box-shadow:0 -1px 0 rgba(25,31,51,.12)}
.ht-pop-foot p{display:none;flex:1;margin:0;font-size:15px;line-height:1.5;color:#3a4260}
.ht-pop-foot p strong{color:var(--ink)}
.ht-pop-foot .btn{flex:1;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 26px;white-space:nowrap}
@media(min-width:760px){
  .ht-pop-win{top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:min(1180px,92vw);height:min(800px,90vh);
    border-radius:14px;box-shadow:0 30px 80px -20px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.08)}
  .ht-pop-bar{height:44px;padding:0 6px 0 14px;gap:14px;background:#2a3148}
  .ht-pop-dots{display:flex;gap:7px}
  .ht-pop-dots i{width:12px;height:12px;border-radius:50%;background:#ff5f57}
  .ht-pop-dots i:nth-child(2){background:#febc2e} .ht-pop-dots i:nth-child(3){background:#28c840}
  .ht-pop-t{text-align:left}
  .ht-pop .ht-pop-view{display:inline-grid}
  .ht-pop-x{width:38px;height:38px}
  .ht-pop-foot{padding:14px 22px}
  .ht-pop-foot p{display:block}
  .ht-pop-foot .btn{flex:none}
}
/* desktop pop-up: Desktop / Mobile view switch (2026-11-21). Phones never see it. */
.ht-pop-view{display:none;position:relative;grid-template-columns:1fr 1fr;padding:3px;border-radius:999px;background:rgba(249,246,238,.1)}
.ht-pop-view button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;background:none;font:inherit;font-size:13.5px;font-weight:700;
  color:rgba(249,246,238,.72);padding:6px 14px;border-radius:999px;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s}
.ht-pop-view button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ht-pop-view button[aria-pressed="true"]{background:var(--hl);color:var(--ink)}
.ht-pop-view button:focus-visible{outline:2px solid var(--hl);outline-offset:2px}
.ht-pop.is-mob .ht-pop-body{background:var(--paper-deep);overflow:auto}
.ht-pop.is-mob .ht-pop-frame{left:50%;right:auto;top:20px;bottom:20px;height:calc(100% - 40px);width:390px;transform:translateX(-50%);
  border-radius:34px;border:9px solid var(--ink);box-shadow:8px 8px 0 var(--hl),0 18px 40px -18px rgba(25,31,51,.35);background:#fff}
@media (prefers-reduced-motion:reduce){.ht-sticker,.ht-sticker svg{animation:none}}

/* phones: no footer CTA in the try-it sheet (founder 2026-11-21): the preview fills the screen; any tap that
   needs an account opens sign-up anyway, and closing returns to the page. */
@media(max-width:759px){.ht-pop-foot,.lf-pop-foot{display:none}}
