/* The close of every narrated page, one stylesheet for the family (SITE-2; Anand, 24 Oct 26: "the CTA section at the
   bottom of the agent pages need a fresh look"). A page links it after its own sections.css as ../shared/close.css and
   loads ../shared/fly-close.js beside the other engines; the build copies both into the page's _assets/.

   The old close was a second navy band, the hero again at the foot of the page. This one is the page's paper: a white
   pass torn into two parts. The left part holds the headline, one line with the 14 day trial, the one violet button
   and three small promises; the stub on the right is the trial itself, fourteen days that fill in turn, day 1 when
   the agent starts and day 14 when the owner decides. The tear is a perforation with a notch at each end (a mask, so
   the drop shadow on the frame follows the notches). Below 760 px the stub moves under the text, the tear runs across
   and the notches go. Every colour is a page token; the motion is fly-close.js's, and none of it without that script
   or with reduced motion (the days are drawn filled). */
.ready{position:relative;padding:clamp(64px,8vw,112px) 0 clamp(72px,9vw,128px);background:linear-gradient(180deg,var(--paper) 0%,var(--surface) 100%);color:var(--ink)}
.ready .wrap{width:100%}
.rd-frame{filter:drop-shadow(0 26px 34px rgba(var(--shadow-rgb),.13)) drop-shadow(0 1px 2px rgba(var(--shadow-rgb),.1))}
.rd{--tear:58%;--notch:17px;position:relative;display:grid;grid-template-columns:minmax(0,58fr) minmax(0,42fr);border-radius:32px;background:var(--card);
  -webkit-mask:radial-gradient(circle var(--notch) at var(--tear) 0,transparent 97%,#000 100%) top/100% 51% no-repeat,radial-gradient(circle var(--notch) at var(--tear) 100%,transparent 97%,#000 100%) bottom/100% 51% no-repeat;
  mask:radial-gradient(circle var(--notch) at var(--tear) 0,transparent 97%,#000 100%) top/100% 51% no-repeat,radial-gradient(circle var(--notch) at var(--tear) 100%,transparent 97%,#000 100%) bottom/100% 51% no-repeat}
.rd-main{padding:clamp(32px,4.4vw,64px) clamp(26px,4vw,60px);text-align:left}
.ready h2{margin:0 0 16px;max-width:13em;font-size:calc(clamp(38px,4.8vw,64px) * var(--display-scale));line-height:calc(1.04 * var(--display-lh));color:var(--ink)}
.ready h2 .v{color:var(--violet-2)}
.ready .line{margin:0 0 30px;max-width:30em;font-size:clamp(17px,1.4vw,20px);line-height:1.5;color:var(--ink-2)}
.ready .btn{min-height:58px;padding:0 32px;font-size:18px;box-shadow:0 14px 30px -16px rgba(var(--glow-rgb),.8)}
.ready .btn .glow{inset:-6px;border-radius:999px;box-shadow:0 0 0 3px rgba(var(--violet-rgb),.45)}
.ready-chips{display:flex;flex-wrap:wrap;gap:8px 20px;margin:24px 0 0;padding:0;list-style:none}
.ready-chips li{display:inline-flex;align-items:center;gap:8px;min-height:28px;font-size:15px;font-weight:600;color:var(--ink-2)}
.ready-chips li::before{content:'';flex:none;width:16px;height:16px;border-radius:50%;background:var(--green-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
/* the stub: the perforation down its left edge, the fourteen days, day 1 and day 14 named under them */
.rd-stub{position:relative;display:flex;flex-direction:column;justify-content:center;gap:18px;padding:clamp(28px,3.6vw,52px) clamp(22px,3.2vw,48px);border-radius:0 32px 32px 0;background:var(--violet-soft)}
.rd-stub::before{content:'';position:absolute;left:-1px;top:calc(var(--notch) + 10px);bottom:calc(var(--notch) + 10px);width:2px;background:linear-gradient(var(--violet-line) 55%,transparent 0) 0 0/2px 12px repeat-y}
.rd-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(6px,.7vw,9px);margin:0;padding:0;list-style:none;counter-reset:day}
.rd-days li{display:grid;place-items:center;aspect-ratio:1;border-radius:11px;background:var(--violet-2);color:var(--white);font:var(--sans-weight-ui) 14px/1 var(--sans);font-variant-numeric:tabular-nums;box-shadow:0 6px 14px -10px rgba(var(--glow-rgb),.9)}
.rd-days li:first-child{background:var(--yellow);color:var(--ink)}
.rd-days li:last-child{background:var(--card);color:var(--violet-2);box-shadow:inset 0 0 0 2px var(--violet)}
/* fly-close.js arms the days while the close is still below the fold, then they arrive in turn once it is on view:
   each keeps its colours (so its number reads at every step), only its scale and opacity move */
.rd-days.is-armed li{opacity:0;scale:.55}
.rd-days.is-armed.is-on li{opacity:1;scale:1;transition:opacity .32s var(--ease),scale .5s cubic-bezier(.34,1.56,.64,1);transition-delay:calc(var(--i,0) * 70ms)}
.rd-ends{display:flex;justify-content:space-between;gap:16px;margin:0;font-size:14px;line-height:1.35;color:var(--ink-2)}
.rd-ends span{display:flex;flex-direction:column;gap:2px}
.rd-ends span:last-child{text-align:right}
.rd-ends b{font:var(--sans-weight-ui) 15px/1.2 var(--sans);color:var(--ink)}
.rd-sum{margin:0;font:var(--sans-weight-ui) 15px/1.4 var(--sans);color:var(--violet-2)}
@media (max-width:760px){
  .rd{grid-template-columns:minmax(0,1fr);-webkit-mask:none;mask:none;border-radius:26px}
  .rd-main{padding:30px 22px 28px}
  .ready h2{font-size:calc(clamp(34px,9vw,44px) * var(--display-scale))}
  .ready .btn{width:100%}
  .rd-stub{border-radius:0 0 26px 26px;padding:26px 22px 28px}
  .rd-stub::before{left:18px;right:18px;top:-1px;bottom:auto;width:auto;height:2px;background:linear-gradient(90deg,var(--violet-line) 55%,transparent 0) 0 0/12px 2px repeat-x}
}
@media (prefers-reduced-motion:reduce){.rd-days.is-armed li{transition:none}}
