/* Page sections, one class block per section concept so sections never style each other. */

/* ==========================================================================
   Pre-launch page: full-width sections on a light ground (t-sec)
   Each section owns one big brand object; its own styles go in a block below (t-hero-*, t-offer-*…).
   ========================================================================== */
.t-sec{padding-block:var(--section-y);min-width:0;overflow-x:clip} /* motion (stamp slam, printer) never makes the page scroll sideways */
.t-sec--paper{background:var(--paper)}
.t-sec--blush{background:var(--panel)}
main>.t-sec:first-child{padding-top:calc(var(--section-y) * .6)}
main + .t-foot{margin-top:0}

/* ==========================================================================
   01 · top (hero): text + the till's customer display | Tilly on the printer, the receipt prints straight down.
   Entrance: eyebrow → headline → sub → display (reels roll up) → key, while the receipt prints. Reduced motion = end state.
   Phone (app feel): tight text, the display as a full-width widget, then Tilly + receipt; the app bar carries the key.
   ========================================================================== */
.t-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(var(--s-7),6vw,var(--s-10));align-items:start}
.t-hero-txt{align-self:center}
.t-hero-eye{display:inline-flex;align-items:center;gap:var(--s-2);margin:0;padding:6px 14px 6px 12px;border-radius:99px;background:var(--panel);font:600 var(--fs-small) var(--font-body)}
.t-hero-eye i{width:7px;height:7px;border-radius:50%;background:var(--red);box-shadow:0 0 0 4px color-mix(in srgb,var(--red) 15%,transparent)}
.t-hero-h{margin-top:var(--s-4);font-weight:800;font-size:clamp(2.1rem,1.5rem + 2.1vw,3.4rem);line-height:1.1;letter-spacing:-.028em}
[dir=rtl] .t-hero-h{letter-spacing:0;line-height:1.32}
.t-hero-h em{font-style:normal;color:var(--red)}
.t-hero-sub{margin:var(--s-4) 0 0;font-size:1.06rem;color:var(--text-soft);max-width:42ch}
.t-hero-cd{margin-top:var(--s-6);max-width:540px}
.t-hero-go{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-3) var(--s-5);margin-top:var(--s-6)}
.t-hero-note{font-size:var(--fs-small);color:var(--text-soft)}

/* the object: Tilly sits on the slot, the receipt prints top → bottom */
.t-hero-obj{position:relative;padding-top:122px;margin-top:-40px;width:min(420px,100%);justify-self:center}
/* Tilly pops up from behind the slot (the box clips him at the waist, the slot hides the cut) */
.t-hero-tilly{position:absolute;z-index:4;top:0;inset-inline-end:14%;width:96px;height:118px;overflow:hidden}
.t-hero-tilly img{display:block;width:100%;height:auto;margin-top:6px;transform-origin:50% 100%}
.t-hero-rcpt{width:100%;cursor:pointer}
/* the printer body: the paper feeds out of the slit along its bottom edge */
.t-hero-rcpt .t-receipt-slot.t-hero-printer{inset-inline:-14px;height:50px;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:0 18px 8px;border-radius:16px 16px 12px 12px;
  background:linear-gradient(180deg,#3A3534 0%,var(--ink) 38%,#141212 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 6px 0 #0B0A0A,0 7px 0 rgba(255,255,255,.04),0 30px 34px -14px rgba(28,26,26,.6)}
/* top face: the printer seen slightly from above, so it reads as a solid block */
.t-hero-printer::before{content:"";position:absolute;inset-inline:10px;bottom:100%;height:16px;border-radius:14px 14px 0 0;background:linear-gradient(180deg,#57504E,#3A3534);clip-path:polygon(5% 0,95% 0,100% 100%,0 100%)}
.t-hero-printer::after{content:"";position:absolute;inset-inline:22px;bottom:7px;height:5px;border-radius:99px;background:#050404;box-shadow:inset 0 2px 2px rgba(0,0,0,.9),0 1px 0 rgba(255,255,255,.08)}
.t-hero-printer img{height:13px;width:auto;opacity:.85}
.t-hero-rcpt .t-receipt-feed{margin-top:38px}
.t-hero-led{position:relative;width:7px;height:7px;flex:none;border-radius:50%;background:var(--red);box-shadow:0 0 6px 1px rgba(198,1,39,.8)}
.t-hero-rcpt .t-receipt-paper{filter:drop-shadow(0 16px 18px rgba(125,10,32,.16))}
.t-hero-logo{display:block;height:20px;width:auto;margin:0 auto var(--s-2)}
.t-hero-k{margin:0 0 var(--s-2);font:700 var(--fs-small) var(--font-display)}
.t-hero-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:var(--s-3) 0 0;padding-top:var(--s-3);border-top:1.5px dashed var(--dash)}
.t-hero-stats div{display:grid;align-content:start;gap:2px;text-align:center;padding-inline:var(--s-1);min-width:0}
.t-hero-stats div+div{border-inline-start:1.5px dashed var(--dash)}
.t-hero-stats dd{margin:0;font:800 1.2rem/1.3 var(--font-display);font-variant-numeric:var(--num);white-space:nowrap}
.t-hero-stats dd small{font-size:.8em}
.t-hero-stats dt{font-size:var(--fs-micro);color:var(--text-soft);line-height:1.35}
.t-hero-rcpt .t-receipt-total{font-size:1.1rem}

/* motion */
@media (prefers-reduced-motion:no-preference){
  .t-hero-txt>*{animation:t-hero-rise .9s var(--ease-out) both}
  .t-hero-h{animation-delay:.08s!important}
  .t-hero-sub{animation-delay:.18s!important}
  .t-hero-cd{animation-delay:.28s!important}
  .t-hero-go{animation-delay:.4s!important}
  .t-hero-tilly img{animation:t-hero-peek .9s var(--ease-snap) .5s both,t-hero-bob 3.4s ease-in-out 1.6s infinite}
  .t-hero-led{animation:t-blink 1.2s steps(1) infinite}
  .t-hero-obj{animation:t-hero-float 6s ease-in-out 2.8s infinite}
  .t-hero-rcpt.is-printing .t-receipt-paper{animation-duration:2s;animation-delay:.3s}
  .t-hero-rcpt.is-printing .t-hero-stats{animation:t-fadein var(--dur-2) 1.4s both}
  .t-hero-rcpt.is-printing .t-stamp{animation-delay:2.3s}
}
@keyframes t-hero-rise{from{opacity:0;transform:translateY(22px);filter:blur(6px)}}
@keyframes t-hero-peek{from{transform:translateY(100%)}70%{transform:translateY(-6%)}}
@keyframes t-hero-bob{50%{transform:translateY(-5px) rotate(-3deg)}}
@keyframes t-hero-float{50%{transform:translateY(-10px)}}

/* tablet */
@media (max-width:1023px){.t-hero{gap:var(--s-7)}.t-hero-obj{width:min(380px,100%)}}

/* phone: app-like */
@media (max-width:899px){
  .t-hero{grid-template-columns:minmax(0,1fr);gap:var(--s-6)}
  .t-hero-eye{font-size:var(--fs-micro);padding:5px 12px 5px 10px}
  .t-hero-h{margin-top:var(--s-3);font-size:clamp(2rem,1.3rem + 3.6vw,2.6rem)}
  .t-hero-sub{margin-top:var(--s-3);font-size:1rem}
  .t-hero-cd{margin-top:var(--s-5);max-width:none}
  .t-hero-cd .t-cdd-row{max-width:none}
  .t-hero-go{display:none}                      /* the app bar's big key is the CTA on phones */
  .t-hero-obj{width:min(370px,calc(100% - 16px));padding-top:104px;margin-top:0}
  .t-hero-rcpt .t-receipt-slot.t-hero-printer{inset-inline:-8px;height:44px;border-radius:14px 14px 10px 10px;padding:0 14px 7px}
  .t-hero-rcpt .t-receipt-feed{margin-top:32px;padding-inline:4%}
  .t-hero-printer img{height:11px}
  .t-hero-stats dd{font-size:1rem}
  .t-hero-tilly{width:80px;height:98px;inset-inline-end:12%}
  .t-hero-rcpt .t-receipt-sheet{padding-inline:var(--s-4)}
  .t-hero-rcpt .t-line{font-size:.8rem;padding-block:5px}
  .t-hero-rcpt .t-receipt-feed{padding-inline:3%}
}
.t-hero-rcpt .t-receipt-sheet{padding-bottom:calc(var(--s-6) + var(--tear))}
/* total line: opening date on the start side, the round stamp pressed into the empty end side */
.t-hero-total{flex-wrap:nowrap;align-items:center}
.t-hero-total>div{display:grid;gap:2px}
.t-hero-total>div span{font:600 var(--fs-micro) var(--font-body);color:var(--text-soft)}
.t-hero-rcpt .t-hero-total .t-stamp--round{position:relative;inset:auto;flex:none;width:84px;margin-block:-14px -8px;transform:rotate(-14deg)}
.t-hero-rcpt .t-stamp--round b{font-size:.95rem}
.t-hero-rcpt .t-stamp--round text{font-size:9.6px}

/* ==========================================================================
   02 · offer: "100 keys, one is yours". Text + facts + key | a till keypad with exactly 100 keys on an ink body.
   Taken = red pressed keys, open = grey raised keys, yours = the next free key glowing paper with a tag (the Keys
   pattern's palette, live). No stamp (user).
   ========================================================================== */
.t-offer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(var(--s-7),6vw,var(--s-10));align-items:center}
.t-offer-h{font-weight:800;font-size:clamp(1.9rem,1.35rem + 1.9vw,3rem);line-height:1.15;letter-spacing:-.02em}
[dir=rtl] .t-offer-h{letter-spacing:0;line-height:1.4}
.t-offer-h em{font-style:normal;color:var(--red);display:block}
.t-offer-sub{margin:var(--s-4) 0 0;font-size:1.06rem;color:var(--text-soft);max-width:40ch}
.t-offer-facts{display:flex;margin:var(--s-6) 0 0}
.t-offer-facts div{display:grid;gap:2px;padding-inline:var(--s-5)}
.t-offer-facts div:first-child{padding-inline-start:0}
.t-offer-facts div+div{border-inline-start:1.5px dashed color-mix(in srgb,var(--wine) 30%,transparent)}
.t-offer-facts dd{margin:0;font:900 clamp(1.6rem,1.3rem + 1vw,2.2rem)/1.15 var(--font-display);color:var(--ink)}
.t-offer-facts dt{font-size:var(--fs-small);color:var(--text-soft)}
.t-offer-go{margin-top:var(--s-6)}

/* the keypad */
.t-pad-wrap{position:relative;width:min(480px,100%);justify-self:center;cursor:pointer}
.t-pad{padding:var(--s-5);border-radius:28px;background:linear-gradient(180deg,#34302F 0%,var(--ink) 22%,#141212 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 0 #0B0A0A,0 44px 50px -26px rgba(28,26,26,.6)}
.t-pad-lcd{display:flex;justify-content:space-between;align-items:center;gap:var(--s-3);margin-bottom:var(--s-4);padding:12px 16px;border-radius:14px;background:#0C0B0B;box-shadow:inset 0 2px 8px rgba(0,0,0,.85),0 1px 0 rgba(255,255,255,.06);color:var(--paper)}
.t-pad-k{display:block;font:600 var(--fs-micro) var(--font-body);color:var(--blush)}
.t-pad-lcd b{font:900 2rem/1.1 var(--font-display);font-variant-numeric:var(--num);direction:ltr;display:inline-block}
.t-pad-lcd b small{font-size:.5em;font-weight:600;color:rgba(250,247,244,.55)}
.t-pad-left{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:99px;background:rgba(250,247,244,.08);font:700 var(--fs-small) var(--font-body);white-space:nowrap}
.t-pad-left i{width:7px;height:7px;border-radius:50%;background:var(--blush)}
.t-pad-wrap.is-almost .t-pad-left{background:var(--red);color:var(--paper)}
.t-pad-wrap.is-almost .t-pad-left i{background:var(--paper);animation:t-blink 1s steps(1) infinite}
.t-pad-keys{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}
.t-pk{position:relative;aspect-ratio:1;border-radius:8px;background:linear-gradient(#4A4442,#363130);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 3px 0 #0E0C0C;transition:transform .14s,background .14s,box-shadow .14s}
.t-pk.is-taken{transform:translateY(2px);background:linear-gradient(#D61A3E,var(--red) 60%,#A9001F);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 var(--wine)}
.t-pk.is-mine{z-index:2;background:linear-gradient(#FFFFFF,var(--paper));box-shadow:0 3px 0 #BDB3AD,0 0 0 3px rgba(250,247,244,.22),0 0 22px 2px rgba(250,247,244,.5);animation:t-pk-glow 1.6s ease-in-out infinite}
.t-pk.is-you{z-index:2;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 var(--wine),0 0 0 3px var(--paper)} /* after registering: taken, ringed, tagged */
.t-pk.is-mine::after,.t-pk.is-you::after{content:var(--tag);position:absolute;bottom:calc(100% + 9px);left:50%;translate:-50% 0;padding:4px 10px;border-radius:99px;background:var(--red);color:var(--paper);font:700 var(--fs-micro) var(--font-body);white-space:nowrap;box-shadow:0 6px 12px -4px rgba(198,1,39,.6)}
.t-pk.is-mine::before,.t-pk.is-you::before{content:"";position:absolute;bottom:calc(100% + 4px);left:50%;translate:-50% 0;border:5px solid transparent;border-top-color:var(--red);border-bottom:0}
@keyframes t-pk-glow{50%{box-shadow:0 3px 0 #BDB3AD,0 0 0 5px rgba(250,247,244,.12),0 0 30px 6px rgba(250,247,244,.65)}}
.t-pad-wrap.is-full .t-pk{opacity:.8}
.t-pad-foot{display:flex;flex-wrap:wrap;gap:var(--s-2) var(--s-5);margin-top:var(--s-4);font-size:var(--fs-micro);color:rgba(250,247,244,.7)}
.t-pad-foot span{display:inline-flex;align-items:center;gap:6px}
.t-pad-foot i{width:12px;height:12px;border-radius:4px;background:#45403E}
.t-pad-foot i.tk{background:var(--red)}.t-pad-foot i.mn{background:var(--paper)}

@media (max-width:1023px){.t-offer{gap:var(--s-7)}}
@media (max-width:899px){
  .t-offer{grid-template-columns:minmax(0,1fr);gap:var(--s-5)}
  .t-offer-go{display:none}                      /* the app bar's key is the CTA on phones */
  .t-offer-facts{margin-top:var(--s-5)}
  .t-pad-wrap{width:min(440px,100%)}
  .t-pad{padding:var(--s-4);border-radius:22px}
  .t-pad-keys{gap:4px}
  .t-pk{border-radius:6px}
  .t-pad-lcd b{font-size:1.6rem}
  .t-pad-wrap{margin-top:0}
}

/* ==========================================================================
   03 · register: "Tilly registers you". Side (title, Tilly, normal-form switch) | the chat card.
   Chat: ink header (Tilly, progress) · log (Tilly white bubbles with avatar, your answers red, tap to edit) ·
   dock (error, quick-reply chips, searchable type picker, input bar). Review = the early-access ticket + consent + send.
   ========================================================================== */
.t-su{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(var(--s-7),6vw,var(--s-10));align-items:center}
.t-su-h{font-weight:800;font-size:clamp(1.9rem,1.35rem + 1.9vw,3rem);line-height:1.15;letter-spacing:-.02em}
[dir=rtl] .t-su-h{letter-spacing:0;line-height:1.4}
.t-su-sub{margin:var(--s-3) 0 0;font-size:1.06rem;color:var(--text-soft);max-width:36ch}
.t-su-tilly{position:relative;width:190px;margin-top:calc(var(--s-7) + 56px)}
.t-su-tilly::before{content:"";position:absolute;z-index:0;inset:22% -18% -4%;border-radius:50%;background:var(--panel)}
.t-su-tilly img{position:relative;display:block;width:100%;height:auto;filter:drop-shadow(0 14px 14px rgba(125,10,32,.18))}
.js .t-su:not(.is-classic) .t-su-classic,.t-su.is-classic .t-chat,html:not(.js) .t-chat,html:not(.js) .t-su-mode{display:none}
.t-su-classic{padding:var(--s-6);border-radius:28px;background:var(--surface);box-shadow:0 0 0 1px var(--line),var(--shadow-2)}
.t-su-classic form.is-done{display:none}
.t-su-result .t-alert{margin-bottom:var(--s-4)}

/* the chat card */
.t-chat{display:flex;flex-direction:column;height:620px;max-height:calc(100svh - 120px);min-height:480px;border-radius:28px;overflow:hidden;background:var(--surface);box-shadow:0 0 0 1px var(--line),0 44px 60px -32px rgba(125,10,32,.38)}
.t-chat-hd{display:flex;align-items:center;gap:var(--s-3);padding:12px 18px;background:var(--ink);color:var(--paper)}
.t-chat-av{position:relative;flex:none;width:32px;height:32px;border-radius:50%;background:var(--panel);display:grid;place-items:center}
.t-chat-av img{width:72%;height:auto;margin-top:12%}
.t-chat-hd .t-chat-av{width:44px;height:44px;background:#2C2827}
.t-chat-hd .t-chat-av i{position:absolute;bottom:1px;inset-inline-end:1px;width:11px;height:11px;border-radius:50%;background:#2DBE6C;box-shadow:0 0 0 2.5px var(--ink)}
.t-chat-who b{display:block;font:700 var(--fs-body) var(--font-display)}
.t-chat-who small{font-size:var(--fs-micro);color:var(--blush)}
.t-chat-prog{margin-inline-start:auto;display:grid;justify-items:end;gap:5px}
.t-chat-prog span{display:flex;gap:3px}
.t-chat-prog i{width:12px;height:4px;border-radius:2px;background:rgba(250,247,244,.18);transition:background var(--dur-2)}
.t-chat-prog i.on{background:var(--red)}
.t-chat-prog small{font-size:var(--fs-micro);color:rgba(250,247,244,.6);min-height:1em}

.t-chat-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px;padding:var(--s-5) var(--s-4);background:var(--paper)}
.t-chat-row{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:8px;row-gap:8px;align-items:end;max-width:min(88%,460px);animation:t-chat-in .28s var(--ease-out) both}
.t-chat-row.is-me{display:flex;align-self:flex-end;max-width:80%}
.t-chat-row.is-bot+.t-chat-row.is-bot .t-chat-av{visibility:hidden}
.t-chat-b{justify-self:start;padding:10px 14px;border-radius:20px 20px 20px 6px;background:var(--surface);box-shadow:0 0 0 1px var(--line),0 6px 14px -12px rgba(125,10,32,.35);font-size:var(--fs-body);line-height:1.6;overflow-wrap:anywhere}
[dir=rtl] .t-chat-b{border-radius:20px 20px 6px 20px}
.t-chat-b small{display:block;margin-top:2px;font-size:var(--fs-micro);color:var(--text-soft)}
.t-chat-b.is-me{border:0;background:var(--red);color:var(--paper);font:600 var(--fs-body)/1.5 var(--font-body);border-radius:20px 20px 6px 20px;box-shadow:0 8px 16px -10px rgba(198,1,39,.6);cursor:pointer;text-align:start}
[dir=rtl] .t-chat-b.is-me{border-radius:20px 20px 20px 6px}
.t-chat-b.is-me:hover{background:#D61A3E}
.t-chat-b.is-me:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.t-chat.is-done .t-chat-b.is-me{cursor:default}
.t-chat-b.is-typing{display:inline-flex;gap:5px;padding:14px 16px}
.t-chat-b.is-typing i{width:7px;height:7px;border-radius:50%;background:var(--ink-faint);animation:t-chat-dot 1s ease-in-out infinite}
.t-chat-b.is-typing i:nth-child(2){animation-delay:.15s}
.t-chat-b.is-typing i:nth-child(3){animation-delay:.3s}
@keyframes t-chat-dot{40%{transform:translateY(-4px);opacity:.5}}
@keyframes t-chat-in{from{opacity:0;transform:translateY(8px)}}

/* the dock */
.t-chat-dock{display:grid;gap:10px;padding:12px;border-top:1px solid var(--line);background:var(--surface);transition:opacity var(--dur-2)}
.t-chat.is-busy .t-chat-dock{opacity:.5;pointer-events:none}
.t-chat.is-done .t-chat-dock{display:none}
.t-chat-err{margin:0;padding:8px 12px;border-radius:12px;background:color-mix(in srgb,var(--red) 8%,var(--surface));color:#A8001F;font:600 var(--fs-small) var(--font-body)}
.t-chat-err[hidden]{display:none}
.t-chat-quick{display:flex;flex-wrap:wrap;gap:8px;max-height:140px;overflow-y:auto}
.t-chat-quick:empty{display:none}
.t-chat-chip{min-height:40px;padding:8px 16px;border-radius:99px;border:1.5px solid var(--red);background:var(--surface);color:var(--red);font:600 var(--fs-small) var(--font-body);cursor:pointer;transition:background var(--dur-1),color var(--dur-1),transform var(--dur-1)}
.t-chat-chip:hover{background:var(--red);color:var(--paper)}
.t-chat-chip:active{transform:scale(.96)}
.t-chat-chip:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.t-chat-chip.is-more{border-color:var(--ink);background:var(--ink);color:var(--paper)}
.t-chat-chip.is-skip{border-color:var(--line);color:var(--text-soft)}
.t-chat-chip.is-skip:hover{background:var(--panel);color:var(--ink)}
.t-chat-chip[hidden]{display:none}
.t-chat-picker{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:10px;max-height:300px}
.t-chat-picker[hidden]{display:none}
.t-chat-search{height:46px;border-radius:99px;border:1.5px solid var(--line);background:var(--paper);padding-inline:18px;font:500 var(--fs-body) var(--font-body);color:var(--ink)}
.t-chat-search:focus{outline:0;border-color:var(--ink)}
.t-chat-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.t-chat-tab{flex:none;padding:6px 14px;border:0;border-radius:99px;background:var(--panel);color:var(--ink);font:600 var(--fs-micro) var(--font-body);cursor:pointer}
.t-chat-tab.is-on{background:var(--ink);color:var(--paper)}
.t-chat-list{overflow-y:auto;display:grid;gap:12px;align-content:start;padding-bottom:2px}
.t-chat-grp{display:grid;gap:6px}
.t-chat-grp[hidden]{display:none}
.t-chat-grp>b{font:600 var(--fs-micro) var(--font-body);color:var(--text-soft)}
.t-chat-chips{display:flex;flex-wrap:wrap;gap:6px}
.t-chat-chips .t-chat-chip{min-height:36px;padding:6px 14px;border-color:var(--line);color:var(--ink)}
.t-chat-chips .t-chat-chip:hover{border-color:var(--red);background:var(--surface);color:var(--red)}
.t-chat-none{margin:0;font-size:var(--fs-small);color:var(--text-soft)}
.t-chat-none[hidden]{display:none}
.t-chat-bar{display:flex;gap:8px}
.t-chat-bar[hidden]{display:none}
.t-chat-bar input{flex:1;min-width:0;height:50px;border-radius:99px;border:1.5px solid var(--line);background:var(--paper);padding-inline:18px;font:500 var(--fs-body) var(--font-body);color:var(--ink)}
.t-chat-bar input:focus{outline:0;border-color:var(--ink);background:var(--surface);box-shadow:0 0 0 3px color-mix(in srgb,var(--red) 30%,transparent)} /* clear ring, not just a darker border */
.t-chat-bar button{flex:none;width:50px;height:50px;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer}
.t-chat-bar .t-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
[dir=rtl] .t-chat-bar .t-arr{transform:scaleX(-1)}
.is-shake{animation:t-su-shake .4s ease}
@keyframes t-su-shake{20%,60%{translate:-6px 0}40%,80%{translate:6px 0}}

/* review: the ticket inside the chat */
.t-chat-card{grid-column:2;display:grid;gap:10px;width:min(400px,100%)}
.t-chat-card .t-ticket-wrap{width:100%;filter:drop-shadow(0 10px 14px rgba(125,10,32,.16))}
.t-chat-card .t-ticket{--stub:78px}
.t-chat-card .t-ticket-main{padding:var(--s-4);gap:6px}
.t-chat-card .t-ticket-name{font-size:1.2rem;overflow-wrap:anywhere}
.t-chat-biz{margin-top:-4px;font:600 var(--fs-small) var(--font-body);color:var(--text-soft);overflow-wrap:anywhere}
.t-chat-card .t-ticket-row{gap:var(--s-4);font-size:var(--fs-micro)}
.t-chat-card .t-ticket-row>div{min-width:0}
.t-chat-card .t-ticket-row b{font-size:var(--fs-small);overflow-wrap:anywhere}
.t-chat-card .t-ticket-stub .no{font-size:1.45rem;color:var(--ink-faint)}
.t-chat-card.is-done .t-ticket-stub .no{color:var(--red)}
.t-chat-tags{display:contents}
.t-chat-tags .t-ticket-tag{display:none}
.t-chat-card.is-done .t-ticket-tag:not(.is-dup),.t-chat-card.is-dup .t-ticket-tag.is-dup{display:inline-flex;animation:t-pop .45s var(--ease-snap) both}
.t-chat-ok{display:flex;gap:10px;align-items:flex-start;font-size:var(--fs-small);color:var(--text-soft);cursor:pointer;position:relative}
.t-chat-ok input{position:absolute;opacity:0}
.t-chat-ok i{flex:none;width:20px;height:20px;margin-top:2px;border-radius:6px;border:1.5px solid var(--ink-faint);background:var(--surface);display:grid;place-items:center}
.t-chat-ok input:checked+i{background:var(--red);border-color:var(--red)}
.t-chat-ok input:checked+i::after{content:"";width:9px;height:5px;border-left:2.5px solid #fff;border-bottom:2.5px solid #fff;rotate:-45deg;translate:0 -1px}
.t-chat-ok input:focus-visible+i{outline:3px solid var(--focus);outline-offset:2px}
.t-chat-card:is(.is-old,.is-done,.is-dup) :is(.t-chat-ok,.t-chat-send){display:none}
.t-chat-card.is-old{opacity:.5}

@media (max-width:899px){
  .t-su{grid-template-columns:minmax(0,1fr);gap:var(--s-5)}
  .t-su-tilly{display:none}
  .t-chat{height:calc(100svh - 104px);max-height:680px;min-height:440px;border-radius:22px;scroll-margin-top:92px}
  .t-chat-log{padding:var(--s-4) var(--s-3)}
  .t-chat-row{max-width:94%}
  .t-chat-picker{max-height:min(290px,40svh)}
  .t-chat-quick{max-height:128px}
  .t-chat-hd{padding:10px 14px;gap:10px}
  .t-chat-hd .t-chat-av{width:38px;height:38px}
  .t-chat-who{min-width:0}
  .t-chat-who small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .t-chat-prog i{width:7px}
}

/* register polish: mode switch, Tilly's bubble, privacy note, two-column normal form */
.t-su-main{display:grid;gap:var(--s-4);min-width:0}
.t-su-mode{justify-self:start;display:inline-flex;gap:4px;padding:4px;border-radius:99px;background:var(--panel)}
.t-su-mode button{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 18px;border:0;border-radius:99px;background:none;color:var(--text-soft);font:600 var(--fs-small) var(--font-body);cursor:pointer;transition:background var(--dur-1),color var(--dur-1)}
.t-su-mode button img{width:16px;height:auto}
.t-su-mode button:hover{color:var(--ink)}
.t-su-mode button[aria-pressed=true]{background:var(--ink);color:var(--paper);box-shadow:0 6px 14px -8px rgba(28,26,26,.6)}
.t-su-mode button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.t-su-say{position:absolute;z-index:2;bottom:calc(100% - 18px);inset-inline-start:58%;width:max-content;max-width:210px;padding:10px 14px;border-radius:18px 18px 18px 4px;background:var(--surface);box-shadow:0 0 0 1px var(--line),0 12px 20px -14px rgba(125,10,32,.4);font:600 var(--fs-small)/1.5 var(--font-body)}
[dir=rtl] .t-su-say{border-radius:18px 18px 4px 18px}
.t-su-note{display:flex;gap:8px;align-items:flex-start;margin:var(--s-6) 0 0;max-width:34ch;font-size:var(--fs-small);color:var(--text-soft)}
.t-su-note .t-icon{flex:none;width:16px;height:16px;margin-top:3px;fill:none;stroke:currentColor;stroke-width:2}
.t-su-classic .t-form{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s-4)}
.t-su-classic .t-form>:is(.t-field:has(.t-seg),.t-check,.t-form-err,.t-btn,.t-form-note,.t-form-rc){grid-column:1/-1}
.t-su-classic .t-form-note{display:none}
.t-chat-row>:nth-child(n+3){grid-column:2;justify-self:start}
@media (prefers-reduced-motion:no-preference){.t-su-tilly img{animation:t-hero-bob 3.6s ease-in-out infinite}.t-su-say{animation:t-chat-in .5s var(--ease-out) .4s both}}

@media (min-width:900px) and (max-width:1100px){.t-su{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)}.t-su-say{inset-inline-start:40%;max-width:170px}}
@media (max-width:899px){
  .t-su-mode{justify-self:stretch;display:flex}
  .t-su-mode button{flex:1;justify-content:center;padding-inline:10px}
  .t-su-note{display:none}
  .t-su-classic{padding:var(--s-4);border-radius:22px}
  .t-su-classic .t-form{grid-template-columns:minmax(0,1fr)}
  .t-su-classic .t-form-note{display:flex}
}
@media (max-width:380px){
  .t-chat-chip{min-height:38px;padding:6px 12px}
  .t-chat-hd .t-chat-who small{display:none}
  .t-chat-b{font-size:var(--fs-small)}
}
.t-chat-card [data-tk="phone"]{white-space:nowrap;overflow-wrap:normal}
.t-chat.is-nodock .t-chat-dock{display:none}
.t-chat-card .t-ticket-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:899px){
  .t-chat-quick{max-height:none}
  .t-chat-chip{min-height:38px;padding:7px 14px}
  .t-chat-card .t-ticket{--stub:66px}
  .t-chat-card .t-ticket-main{padding:14px}
  .t-chat-card .t-ticket-stub .no{font-size:1.25rem}
  .t-chat-ok{font-size:var(--fs-micro);line-height:1.6}
}
.t-chat-card .t-ticket-row:has(.t-ticket-off){grid-template-columns:minmax(0,1fr)}
@media (max-width:400px){
  .t-chat-card .t-ticket{--stub:58px}
  .t-chat-card .t-ticket-row{gap:var(--s-3)}
  .t-chat-card [data-tk="phone"]{font-size:.8rem;letter-spacing:-.01em}
}

/* ==========================================================================
   04 · day: "two people, one day". Wordmark + statement on top; merchant half (the "Your day" phone + time strip) |
   a dashed receipt line with Tilly | cashier half (a small working till). Blush ground.
   ========================================================================== */
.t-day-head{display:grid;justify-items:center;gap:var(--s-3);text-align:center;margin-bottom:var(--s-8)}
.t-day-mark{height:clamp(30px,2.2rem + 1vw,46px);width:auto}
.t-day-h{font-weight:800;font-size:clamp(1.9rem,1.35rem + 1.9vw,3rem);line-height:1.2}
.t-day-grid{display:grid;grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr);gap:var(--s-5);align-items:start}
.t-day-half{display:grid;justify-items:center;gap:var(--s-6);min-width:0}
.t-day-txt{text-align:center;max-width:min(52ch,100%)}
.t-day-k{display:inline-flex;align-items:center;gap:8px;padding:5px 14px 5px 12px;border-radius:99px;background:var(--surface);font:700 var(--fs-small) var(--font-body);color:var(--wine)}
.t-day-k i{width:7px;height:7px;border-radius:50%;background:var(--red)}
.t-day-txt h3{margin-top:var(--s-3);font:800 clamp(1.3rem,1.1rem + .8vw,1.75rem)/1.35 var(--font-display)}
.t-day-txt p{margin:var(--s-2) 0 0;color:var(--text-soft)}
.t-day-mid{align-self:stretch;position:relative;display:grid;justify-items:center;align-content:end}
.t-day-mid::before{content:"";position:absolute;top:0;bottom:150px;left:50%;border-inline-start:2px dashed color-mix(in srgb,var(--wine) 28%,transparent)}
.t-day-mid img{position:relative;width:110px;height:auto;filter:drop-shadow(0 12px 12px rgba(125,10,32,.18))}
.t-day .t-till-wrap{width:min(520px,100%)}
.t-day .t-key{min-height:68px}
.t-day-try{display:flex;align-items:center;gap:8px;margin:calc(var(--s-3) * -1) 0 0;font-size:var(--fs-small);color:var(--text-soft)}
.t-day-try .t-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
@media (prefers-reduced-motion:no-preference){.t-day-mid img{animation:t-hero-bob 3.8s ease-in-out infinite}}
@media (max-width:1023px){.t-day-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s-7) var(--s-5)}.t-day-mid{display:none}}
@media (max-width:899px){
  .t-day-head{margin-bottom:var(--s-6)}
  .t-day-grid{grid-template-columns:minmax(0,1fr);gap:var(--s-9)}
  .t-day-half{gap:var(--s-5)}
  .t-day .t-phone{width:min(280px,100%);height:560px}
}

/* day v2: each object stands on its own soft stage; the times become a timeline */
.t-day-half>.t-day-phone,.t-day-half>.t-till-wrap{position:relative;isolation:isolate}
.t-day-half>.t-day-phone::before{content:"";position:absolute;z-index:-1;left:50%;top:6%;translate:-50% 0;width:min(470px,125%);aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,#F2BCC7 0%,#F6D3DA 50%,transparent 100%)}
.t-day-half>.t-till-wrap::before{content:"";position:absolute;z-index:-1;left:50%;top:50%;translate:-50% -50%;width:118%;aspect-ratio:1.5;border-radius:50%;background:radial-gradient(closest-side,#F2BCC7 0%,#F6D3DA 50%,transparent 100%)}
.t-day-times{position:relative;padding-inline:6px}
.t-day-times::before{content:"";position:absolute;inset-inline:16px;top:50%;border-top:2px dashed color-mix(in srgb,var(--wine) 25%,transparent);z-index:-1}
.t-day-times button{position:relative}
.t-day .t-till-pane{border-radius:14px}
@media (min-width:900px) and (max-width:1023px){.t-day .t-phone{width:min(260px,100%);height:520px}}
@media (max-width:380px){
  .t-day .t-phone{width:min(258px,100%);height:520px}
  .t-day .t-phone-lock b{font-size:3.4rem}
  .t-day .t-key{min-height:58px;padding:10px 8px}
  .t-day-times{flex-wrap:nowrap;gap:4px}
  .t-day-times button{min-height:34px;padding:4px 9px;font-size:var(--fs-micro)}
}

/* day: phone and till the same height, tops aligned (rows shared through subgrid). Desktop + tablet only. */
@media (min-width:900px){
  .t-day-grid{grid-template-rows:auto auto auto;row-gap:var(--s-6)}
  .t-day-half{grid-row:span 3;grid-template-rows:subgrid;gap:0;row-gap:var(--s-6)}
  .t-day-mid{grid-row:1 / span 3;grid-column:2}
  .t-day-half:first-child{grid-column:1}
  .t-day-half:last-child{grid-column:3}
  .t-day-half>.t-till-wrap{align-self:start}
  .t-day .t-till{--h:560px;height:var(--h);grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .t-day .t-keys{grid-template-columns:repeat(3,minmax(0,1fr))}
  .t-day .t-till-pane{min-height:0}
  .t-day .t-till-lines{max-height:none}
  .t-day-try{margin-top:calc(var(--s-6) * -1 - 38px);min-height:38px}
}
@media (min-width:900px) and (max-width:1023px){.t-day .t-till{--h:520px}}
@media (min-width:900px) and (max-width:1023px){.t-day-half:last-child{grid-column:2}}
@media (min-width:1024px){.t-day .t-phone{width:min(280px,100%);height:560px}}

/* ==========================================================================
   05 · steps: "three slips off the till roll". A wide 3D printer (three slits) prints the steps as torn slips,
   one after another; each swings to a slight tilt. Phone: one slit, one receipt with perforations. Paper ground.
   ========================================================================== */
.t-steps-head{display:grid;justify-items:center;gap:var(--s-3);text-align:center;margin-bottom:var(--s-8)}
.t-steps-k{display:inline-flex;align-items:center;gap:8px;padding:5px 14px 5px 12px;border-radius:99px;background:var(--panel);font:700 var(--fs-small) var(--font-body);color:var(--wine)}
.t-steps-k i{width:7px;height:7px;border-radius:50%;background:var(--red)}
.t-steps-h{font-weight:800;font-size:clamp(1.9rem,1.35rem + 1.9vw,3rem);line-height:1.25}
.t-steps-sub{margin:0;color:var(--text-soft);font-size:1.06rem}

.t-steps-roll{--gap:var(--s-7);width:min(1040px,100%);margin-inline:auto;position:relative;padding-top:16px;cursor:pointer}
/* the printer (same build as the hero's): ink block, top face, wordmark + LED, one slit per slip */
.t-steps-printer{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;width:calc(100% + 28px);margin-inline:-14px;height:54px;padding:0 22px 14px;border:0;border-radius:16px 16px 12px 12px;cursor:pointer;
  background:linear-gradient(180deg,#3A3534 0%,var(--ink) 38%,#141212 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 6px 0 #0B0A0A,0 7px 0 rgba(255,255,255,.04),0 30px 34px -14px rgba(28,26,26,.6);transition:transform var(--dur-1)}
.t-steps-printer:active{transform:translateY(2px)}
.t-steps-printer:focus-visible{outline:3px solid var(--red);outline-offset:4px}
.t-steps-printer::before{content:"";position:absolute;inset-inline:10px;bottom:100%;height:16px;border-radius:14px 14px 0 0;background:linear-gradient(180deg,#57504E,#3A3534);clip-path:polygon(2% 0,98% 0,100% 100%,0 100%)}
.t-steps-printer img{height:13px;width:auto;opacity:.85}
.t-steps-led{width:7px;height:7px;flex:none;border-radius:50%;background:var(--red);box-shadow:0 0 6px 1px rgba(198,1,39,.8)}
.t-steps-slits{position:absolute;inset-inline:14px;bottom:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}
.t-steps-slits i{height:5px;margin-inline:2%;border-radius:99px;background:#050404;box-shadow:inset 0 2px 2px rgba(0,0,0,.9),0 1px 0 rgba(255,255,255,.08)}

.t-steps-feed{margin-top:-10px}
.t-steps-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap);position:relative;isolation:isolate}
/* the dashed feed line that runs between the slips */
.t-steps-list::before{content:"";position:absolute;z-index:-1;inset-inline:8%;top:58%;border-top:2px dashed color-mix(in srgb,var(--wine) 28%,transparent)}
.t-steps-item{display:grid;clip-path:inset(0 -80px -120px);padding-inline:4%}
.t-steps-paper{--tilt:-2deg;display:grid;transform-origin:50% 0;rotate:var(--tilt);filter:drop-shadow(0 16px 18px rgba(125,10,32,.16))}
.t-steps-item:nth-child(2) .t-steps-paper{--tilt:1.6deg}
.t-steps-item:nth-child(3) .t-steps-paper{--tilt:-1.2deg}
.t-steps-slip{position:relative;background:var(--surface);padding:calc(var(--s-6) + 10px) var(--s-5) calc(var(--s-7) + var(--tear));
  -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,var(--tear-cut) bottom/160px 12px repeat-x;mask:linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,var(--tear-cut) bottom/160px 12px repeat-x}
.t-steps-top{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);padding-bottom:var(--s-4);margin-bottom:var(--s-4);border-bottom:1.5px dashed var(--dash)}
.t-steps-no{font:800 clamp(2.6rem,2rem + 1.6vw,3.4rem)/1 var(--font-display);letter-spacing:-.03em;font-variant-numeric:var(--num)}
.t-steps-no .t-num::after{content:"";display:inline-block;width:.16em;height:.16em;margin-inline-start:.06em;border-radius:50%;background:var(--red)}
.t-steps-ic{flex:none;width:52px;height:52px;border-radius:50%;background:var(--panel);color:var(--wine);display:grid;place-items:center}
.t-steps-ic .t-icon{width:24px;height:24px}
.t-steps-slip h3{font:800 clamp(1.15rem,1rem + .5vw,1.4rem)/1.4 var(--font-display)}
.t-steps-slip p{margin:var(--s-2) 0 0;color:var(--text-soft)}
/* 03: red tag stuck on the slip, inside the paper so the mask never cuts it */
.t-steps-tag{display:inline-flex;align-items:center;gap:6px;margin-top:var(--s-4);padding:5px 14px;border-radius:99px;background:var(--red);color:var(--paper);font:700 var(--fs-small) var(--font-display);rotate:-4deg;box-shadow:0 6px 12px -6px rgba(125,10,32,.6)}
[dir=rtl] .t-steps-tag{rotate:4deg}
.t-steps-tag::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}

/* motion: slips feed out one after another, then swing to their tilt; the tag slams on 03 */
@media (prefers-reduced-motion:no-preference){
  .t-steps-led{animation:t-blink 1.2s steps(1) infinite}
  .t-steps-roll.is-printing .t-steps-paper{--d:calc(.25s + var(--i) * .6s);animation:t-feed 1.1s var(--ease-out) var(--d) both,t-steps-swing 1.3s ease-in-out calc(var(--d) + 1s) both}
  .t-steps-roll.is-printing .t-steps-tag{animation:t-slam .45s var(--ease-snap) 2.7s both}
}
@keyframes t-steps-swing{from{rotate:0deg}45%{rotate:calc(var(--tilt) * 1.8)}75%{rotate:calc(var(--tilt) * .7)}to{rotate:var(--tilt)}}

@media (max-width:1023px){.t-steps-roll{--gap:var(--s-5)}.t-steps-slip{padding-inline:var(--s-4)}}
/* phone: one slit, the three steps are one receipt with perforations between them */
@media (max-width:899px){
  .t-steps-head{margin-bottom:var(--s-6)}
  .t-steps-roll{width:min(380px,calc(100% - 16px))}
  .t-steps-printer{width:calc(100% + 16px);margin-inline:-8px;height:46px;padding:0 16px 12px;border-radius:14px 14px 10px 10px}
  .t-steps-printer img{height:11px}
  .t-steps-slits{grid-template-columns:1fr;inset-inline:18px;bottom:7px}
  .t-steps-slits i:not(:first-child){display:none}
  .t-steps-feed{clip-path:inset(0 -80px -80px);padding-inline:4%}
  .t-steps-list{grid-template-columns:1fr;gap:0;filter:drop-shadow(0 16px 18px rgba(125,10,32,.16))}
  .t-steps-list::before{display:none}
  .t-steps-item{clip-path:none;padding:0}
  .t-steps-paper{rotate:0deg;filter:none}
  .t-steps-slip{-webkit-mask:none;mask:none;padding:var(--s-5)}
  .t-steps-item:first-child .t-steps-slip{padding-top:calc(var(--s-5) + 10px)}
  .t-steps-item+.t-steps-item .t-steps-slip{border-top:1.5px dashed var(--dash)}
  .t-steps-item:last-child .t-steps-slip{padding-bottom:calc(var(--s-6) + var(--tear));
    -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,var(--tear-cut) bottom/160px 12px repeat-x;mask:linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,var(--tear-cut) bottom/160px 12px repeat-x}
  .t-steps-top{padding-bottom:var(--s-3);margin-bottom:var(--s-3)}
  .t-steps-no{font-size:2.3rem}
  .t-steps-ic{width:44px;height:44px}
}
@media (max-width:899px) and (prefers-reduced-motion:no-preference){
  .t-steps-roll.is-printing .t-steps-paper{animation:none}
  .t-steps-roll.is-printing .t-steps-list{animation:t-feed 2.2s var(--ease-out) .25s both}
  .t-steps-roll.is-printing .t-steps-tag{animation-delay:2.3s}
}

/* ==========================================================================
   06 · why: "Tilly's stamps". One long till tape across the section; Tilly walks along it with a rubber stamp
   and slams أسرع (red) · أوضح (ink) · أذكى (wine), each over its printed line. Blush ground.
   ========================================================================== */
.t-why-head{display:grid;justify-items:center;gap:var(--s-3);text-align:center;margin-bottom:0}
.t-why-k{display:inline-flex;align-items:center;gap:8px;padding:5px 14px 5px 12px;border-radius:99px;background:var(--surface);font:700 var(--fs-small) var(--font-body);color:var(--wine)}
.t-why-k i{width:7px;height:7px;border-radius:50%;background:var(--red)}
.t-why-h{font-weight:800;font-size:clamp(1.9rem,1.35rem + 1.9vw,3rem);line-height:1.25}
.t-why-sub{margin:0;color:var(--text-soft);font-size:1.06rem}

.t-why-stage{--at:2;width:min(1040px,100%);margin-inline:auto;position:relative}
/* Tilly + the stamp tool walk on a rail above the tape, centred over cell --at */
.t-why-rail{position:relative;z-index:3;height:136px;pointer-events:none} /* = Tilly's height: no empty band under the heading */
.t-why-bot{position:absolute;bottom:-4px;width:200px;margin-inline-start:-100px;inset-inline-start:calc((var(--at) + .5) * 100% / 3);transition:inset-inline-start .6s var(--ease-out)}
.t-why-bot img{position:absolute;bottom:0;inset-inline-end:0;width:92px;height:auto;filter:drop-shadow(0 12px 12px rgba(125,10,32,.18));transform-origin:50% 100%}
.t-why-tool{position:absolute;bottom:8px;inset-inline-start:50%;margin-inline-start:-34px;width:68px;display:grid;justify-items:center;filter:drop-shadow(0 10px 8px rgba(28,26,26,.25))}
.t-why-tool i{width:34px;height:34px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#57504E,var(--ink) 60%,#0B0A0A)}
.t-why-tool b{width:13px;height:26px;margin-top:-3px;background:linear-gradient(90deg,#0B0A0A,#3A3534 45%,#0B0A0A)}
.t-why-tool s{width:68px;height:24px;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,#9A1530,var(--wine));box-shadow:inset 0 -6px 0 var(--red)}

.t-why-roll{filter:drop-shadow(0 18px 22px rgba(125,10,32,.14))}
.t-why-tape{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--surface);border-radius:var(--r-paper) var(--r-paper) 0 0;padding-bottom:var(--tear);
  -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,var(--tear-cut) bottom/160px 12px repeat-x;mask:linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,var(--tear-cut) bottom/160px 12px repeat-x}
.t-why-cell{display:grid;justify-items:center;align-content:start;gap:var(--s-4);text-align:center;padding:var(--s-7) var(--s-6) var(--s-7);min-width:0}
.t-why-cell+.t-why-cell{border-inline-start:1.5px dashed var(--dash)}
.t-why-cell h3{margin:0;line-height:1}
.t-why-cell p{margin:0;color:var(--text-soft);max-width:30ch}

/* the stamp: double frame, worn ink, slight turn. The button keeps its place when the ink is lifted */
.t-why-stamp{--r:-6deg;padding:6px;border:0;background:none;cursor:pointer;border-radius:14px;color:var(--red)}
.t-why-stamp--ink{--r:3deg;color:var(--ink)}
.t-why-stamp--wine{--r:-3deg;color:var(--wine)}
.t-why-stamp:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.t-why-stamp span{display:inline-block;font:900 clamp(2rem,1.5rem + 1.6vw,3rem)/1.15 var(--font-display);letter-spacing:0;padding:.08em .42em .16em;border:5px solid currentColor;border-radius:10px;outline:1.5px solid currentColor;outline-offset:-11px;rotate:var(--r);mix-blend-mode:multiply;opacity:0;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.t-why.is-done .t-why-cell:not(.is-off) .t-why-stamp span,.t-why-cell.is-on:not(.is-off) .t-why-stamp span{opacity:.92}
.t-why-stamp:hover span{scale:1.03}

.t-why-try{display:flex;align-items:center;justify-content:center;gap:8px;margin:var(--s-5) 0 0;font-size:var(--fs-small);color:var(--text-soft)}
.t-why-try .t-icon{width:16px;height:16px}

/* motion: walk (Tilly hops), press (the tool comes down), slam (the ink lands), thud (the tape gives a little) */
@media (prefers-reduced-motion:no-preference){
  .t-why-bot img{animation:t-hero-bob 3.6s ease-in-out infinite}
  .t-why-stage.is-walk .t-why-bot img{animation:t-why-hop .6s var(--ease-out)}
  .t-why-stage.is-press .t-why-tool{animation:t-why-press .5s ease-in-out}
  .t-why-stage.is-press .t-why-roll{animation:t-why-thud .3s ease-out .17s}
  .t-why-cell.is-stamp .t-why-stamp span{animation:t-why-slam .42s var(--ease-snap)}
}
@keyframes t-why-hop{30%{transform:translateY(-14px) rotate(-4deg)}60%{transform:translateY(0)}80%{transform:translateY(-4px)}}
@keyframes t-why-press{35%,52%{translate:0 78px}}
@keyframes t-why-thud{40%{translate:0 3px}}
@keyframes t-why-slam{from{opacity:0;scale:1.9}60%{opacity:.92;scale:.96}}

@media (max-width:1023px){.t-why-cell{padding-inline:var(--s-4)}}
/* phone: Tilly stands on top of the tape (no walking), the tape is a column */
@media (max-width:899px){
  .t-why-head{margin-bottom:0}
  .t-why-stage{width:min(420px,100%)}
  .t-why-rail{height:124px}
  .t-why-bot{inset-inline-start:50%;transition:none}
  .t-why-bot img{width:84px;inset-inline-end:auto;inset-inline-start:50%;margin-inline-start:-42px}
  .t-why-tool{display:none}
  .t-why-tape{grid-template-columns:1fr}
  .t-why-cell{padding:var(--s-6) var(--s-5)}
  .t-why-cell+.t-why-cell{border-inline-start:0;border-top:1.5px dashed var(--dash)}
  .t-why-cell:last-child{padding-bottom:var(--s-7)}
}

/* ==========================================================================
   07 · faq: "the customer display" (user pick D, 2026-11-24). A till's customer display: the dark screen types the
   chosen answer (Tilly peeks from the corner), the questions are 3D till keys under it. Paper ground.
   Desktop: text + contact | device. Tablet: text | contact, device below. Phone: text, device (keys stacked), contact.
   ========================================================================== */
.t-faq{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);grid-template-rows:auto 1fr;grid-template-areas:"txt dev" "more dev";gap:var(--s-6) var(--s-9);align-items:start}
.t-faq-txt{grid-area:txt;display:grid;justify-items:start;gap:var(--s-3)}
.t-faq-k{display:inline-flex;align-items:center;gap:8px;padding:5px 14px 5px 12px;border-radius:99px;background:var(--panel);font:700 var(--fs-small) var(--font-body);color:var(--wine)}
.t-faq-k i{width:7px;height:7px;border-radius:50%;background:var(--red)}
.t-faq-h{font-weight:800;font-size:clamp(1.9rem,1.35rem + 1.9vw,3rem);line-height:1.25}
.t-faq-sub{margin:0;color:var(--text-soft);font-size:1.06rem;max-width:40ch}
.t-faq-more{grid-area:more;display:grid;gap:var(--s-3);padding:var(--s-5);border:1.5px dashed var(--dash);border-radius:var(--r-lg);width:min(100%,380px)}
.t-faq-more strong{font:800 var(--fs-h3)/1.3 var(--font-display)}
.t-faq-more p{margin:2px 0 0;color:var(--text-soft);font-size:var(--fs-small)}
.t-faq-acts{display:flex;flex-wrap:wrap;gap:var(--s-2)}

/* the device */
.t-faq-dev{grid-area:dev;display:grid;gap:12px;min-width:0;padding:14px;border-radius:var(--r-xl);
  background:linear-gradient(180deg,#3A3534,var(--ink) 18%,#141212);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13),inset 0 -4px 0 #0B0A0A,0 44px 60px -30px rgba(28,26,26,.6),0 14px 24px -16px rgba(125,10,32,.35)}
.t-faq-bar{display:flex;align-items:center;gap:var(--s-3);padding:2px 8px 0}
.t-faq-bar img{height:13px;width:auto;opacity:.85}
.t-faq-chip{display:inline-flex;align-items:center;gap:7px;padding:3px 11px;border-radius:99px;border:1px solid rgba(250,247,244,.16);color:var(--blush);font:600 var(--fs-micro) var(--font-body)}
.t-faq-chip i{width:6px;height:6px;border-radius:50%;background:var(--red);animation:t-pulse 1.6s ease-out infinite}
.t-faq-count{margin-inline-start:auto;font:700 var(--fs-micro) var(--font-display);color:rgba(250,247,244,.55);font-variant-numeric:var(--num);direction:ltr}
.t-faq-count b{color:var(--paper)}

/* the screen: dark glass, faint Keys pattern, scanlines; answer typed in, Tilly in the corner */
.t-faq-screen{position:relative;isolation:isolate;overflow:hidden;display:grid;align-content:center;min-height:260px;border-radius:18px;scroll-margin-top:96px;
  padding:var(--s-6) var(--s-7) calc(var(--s-6) + 22px);padding-inline-end:170px;
  background:radial-gradient(120% 110% at 100% 0,#2B1A1D,#0E0D0D 62%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),inset 0 14px 40px rgba(0,0,0,.7)}
.t-faq-screen::before{content:"";position:absolute;inset:0;z-index:-1;background:url(../img/patterns/pattern-keys.png) 0 0/264px auto;opacity:.035;animation:t-drift 60s linear infinite}
.t-faq-screen::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(255,255,255,.022) 0 1px,transparent 1px 3px)}
.t-faq-ans{display:grid;gap:var(--s-2);align-content:center}
.t-faq-ans+.t-faq-ans{margin-top:var(--s-5)}                       /* no JS: all answers listed */
.js .t-faq-ans:not(.is-on){display:none}
.js .t-faq-ans+.t-faq-ans{margin-top:0}
.t-faq-ans small{color:var(--blush);font:600 var(--fs-small)/1.5 var(--font-body);opacity:.85}
.t-faq-ans p{margin:0;color:var(--paper);font:700 clamp(1.12rem,1rem + .55vw,1.45rem)/1.65 var(--font-display);text-wrap:pretty}
.t-faq-ans.is-typing p::after{content:"";display:inline-block;width:3px;height:1em;margin-inline-start:4px;vertical-align:-.15em;background:var(--red);animation:t-blink .8s steps(1) infinite}
.t-faq-dots{position:absolute;bottom:18px;inset-inline-start:var(--s-7);display:flex;gap:6px}
.t-faq-dots i{width:7px;height:7px;border-radius:99px;background:rgba(250,247,244,.2);transition:width var(--dur-2) var(--ease-out),background var(--dur-2)}
.t-faq-dots i.is-on{width:22px;background:var(--red)}
.t-faq-tilly{position:absolute;bottom:0;inset-inline-end:26px;width:118px;height:132px;overflow:hidden;pointer-events:none}
.t-faq-tilly img{display:block;width:100%;height:auto;margin-top:6px;transform-origin:50% 100%;filter:drop-shadow(0 0 22px rgba(198,1,39,.25))}

/* the keys: 3D till keys, the chosen one red and pressed in */
.t-faq-keys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-bottom:4px}
.t-faq-key:last-child:nth-child(odd){grid-column:1/-1} /* an odd last question spans the row (no hole) */
.t-faq-key{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;min-height:80px;padding:12px 16px;border:0;border-radius:14px;cursor:pointer;text-align:start;
  background:linear-gradient(180deg,#4B4543,#38332F);color:var(--paper);font:700 var(--fs-small)/1.5 var(--font-display);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 5px 0 #0B0A0A,0 9px 14px -6px rgba(0,0,0,.6);transition:transform var(--dur-1),box-shadow var(--dur-1),background var(--dur-2)}
.t-faq-key b{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:rgba(0,0,0,.28);color:var(--blush);font:800 .8rem var(--font-display);transition:background var(--dur-2),color var(--dur-2)}
.t-faq-key:hover{background:linear-gradient(180deg,#57504E,#433D3A)}
.t-faq-key:active{transform:translateY(4px);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 1px 0 #0B0A0A}
.t-faq-key.is-on{transform:translateY(2px);background:linear-gradient(180deg,#DE2146,var(--red) 55%,#AE0021);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 3px 0 var(--wine),0 10px 18px -8px rgba(198,1,39,.7)}
.t-faq-key.is-on b{background:rgba(255,255,255,.18);color:var(--paper)}
.t-faq-key:focus-visible{outline:3px solid var(--blush);outline-offset:3px}

/* motion: the device rises in on view; Tilly bobs and pops up again on every answer */
@media (prefers-reduced-motion:no-preference){
  .t-faq-dev.is-in{animation:t-hero-rise .8s var(--ease-out) both}
  .t-faq-tilly img{animation:t-hero-bob 3.6s ease-in-out infinite}
  .t-faq-screen.is-peek .t-faq-tilly img{animation:t-hero-peek .6s var(--ease-snap) both,t-hero-bob 3.6s ease-in-out .6s infinite}
}

/* tablet: heading | contact on one row, the device full width under them */
@media (max-width:1023px){
  .t-faq{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto;grid-template-areas:"txt more" "dev dev";gap:var(--s-6) var(--s-6);align-items:end}
  .t-faq-dev{width:min(820px,100%);justify-self:center}
}
/* phone: heading, device (keys stacked), contact */
@media (max-width:899px){
  .t-faq{grid-template-columns:minmax(0,1fr);grid-template-areas:"txt" "dev" "more";gap:var(--s-5)}
  .t-faq-dev{padding:10px;border-radius:22px;gap:10px}
  .t-faq-screen{min-height:0;align-content:start;padding:var(--s-5) var(--s-5) 108px;border-radius:14px}
  .t-faq-dots{inset-inline-start:var(--s-5);bottom:16px}
  .t-faq-tilly{width:84px;height:94px;inset-inline-end:16px}
  .t-faq-keys{grid-template-columns:1fr;gap:10px}
  .t-faq-key{min-height:62px;padding:10px 14px}
  .t-faq-key b{width:32px;height:32px}
  .t-faq-more{width:100%}
}
@media (max-width:380px){.t-faq-chip{display:none}.t-faq-ans p{font-size:1.06rem}}

/* ==========================================================================
   08 · cta: "the last key" (v2: full width, main action always visible). Text + register button | a giant 3D register
   key on the till with Tilly on it; the cash drawer slides out holding the live countdown. Blush ground.
   Extra bottom room so the footer's Tilly (standing on the torn edge) never touches the till.
   ========================================================================== */
.t-cta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s-7) var(--s-9);align-items:center}
.t-cta-txt{display:grid;justify-items:start;gap:var(--s-4)}
.t-cta-eye{display:inline-flex;align-items:center;gap:8px;margin:0;padding:5px 14px 5px 12px;border-radius:99px;background:var(--surface);font:700 var(--fs-small) var(--font-body);color:var(--wine)}
.t-cta-eye i{width:7px;height:7px;border-radius:50%;background:var(--red)}
.t-cta-h{font-weight:900;font-size:clamp(2.1rem,1.4rem + 2.2vw,3.4rem);line-height:1.15;letter-spacing:-.02em}
[dir=rtl] .t-cta-h{letter-spacing:0;line-height:1.3}
.t-cta-h em{font-style:normal;color:var(--red);display:block}
.t-cta-sub{margin:0;color:var(--text-soft);font-size:clamp(1.02rem,.95rem + .3vw,1.2rem);max-width:44ch}
.t-cta-go{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-3) var(--s-5);margin-top:var(--s-3)}
.t-cta-soc{display:flex;flex-wrap:wrap;gap:var(--s-3)} /* Instagram + Facebook pills (each when set in Admin → Contact Details) */
.t-cta-ig{display:inline-flex;align-items:center;gap:10px;padding:6px 18px 6px 6px;border-radius:99px;background:var(--surface);text-decoration:none;color:var(--text);box-shadow:inset 0 0 0 1.5px var(--line);transition:box-shadow var(--dur-1),transform var(--dur-1)}
[dir=rtl] .t-cta-ig{padding:6px 6px 6px 18px}
.t-cta-ig:hover{box-shadow:inset 0 0 0 1.5px var(--wine);transform:translateY(-2px)}
.t-cta-ig-i{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--panel);color:var(--wine)}
.t-cta-ig-i .t-icon{width:20px;height:20px}
.t-cta-ig small{display:block;font:500 var(--fs-micro) var(--font-body);color:var(--text-soft)}
.t-cta-ig b{display:block;font:800 var(--fs-body)/1.3 var(--font-display);color:var(--wine)}
.t-cta-note{display:flex;align-items:center;gap:8px;margin:0;font-size:var(--fs-small);color:var(--text-soft)}
.t-cta-note .t-icon{width:16px;height:16px;color:var(--red)}

/* the till: key on the top face, Tilly on the key, the drawer slides out of the slot */
.t-cta-till{width:min(600px,100%);justify-self:center;display:grid;justify-items:center;position:relative}
.t-cta-top{position:relative;width:100%;display:grid;justify-items:center;padding-top:142px}
.t-cta-top::after{content:"";position:absolute;inset-inline:0;bottom:0;height:46px;border-radius:22px 22px 0 0;background:linear-gradient(180deg,#5A5351,#3A3534);clip-path:polygon(3% 0,97% 0,100% 100%,0 100%)}
.t-cta-key{position:relative;z-index:2;width:min(270px,62%);height:118px;margin-bottom:22px;border:0;border-radius:24px;cursor:pointer;color:var(--paper);
  background:linear-gradient(180deg,#E42A4E 0%,var(--red) 50%,#B10022 100%);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.35),inset 0 -6px 10px rgba(0,0,0,.12),0 14px 0 var(--wine),0 16px 0 #4A0613,0 34px 30px -12px rgba(28,26,26,.55);transition:filter var(--dur-1)}
.t-cta-key:hover{filter:brightness(1.06)}
.t-cta-key:focus-visible{outline:3px solid var(--ink);outline-offset:6px}
.t-cta-cap{display:grid;justify-items:center;gap:6px;font:800 1.15rem/1 var(--font-display);letter-spacing:.02em}
.t-cta-cap img{width:34px;height:34px}
.t-cta-tilly{position:absolute;bottom:calc(100% - 6px);left:50%;width:104px;margin-left:-52px;pointer-events:none}
.t-cta-tilly img{display:block;width:100%;height:auto;transform-origin:50% 100%;filter:drop-shadow(0 10px 10px rgba(125,10,32,.25))}
.t-cta-body{position:relative;z-index:1;width:100%;height:70px;border-radius:0 0 16px 16px;background:linear-gradient(180deg,#2C2827,var(--ink) 40%,#121010);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 6px 0 #0B0A0A}
.t-cta-slot{position:absolute;inset-inline:5%;bottom:10px;height:7px;border-radius:99px;background:#050404;box-shadow:inset 0 2px 3px rgba(0,0,0,.9),0 1px 0 rgba(255,255,255,.06)}
.t-cta-led{position:absolute;top:16px;inset-inline-end:22px;width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 8px 1px rgba(198,1,39,.8)}

/* the drawer: its room is ALWAYS reserved and only the tray moves (transform), so opening/closing never changes the page
   height. (It used to grow 0fr → 1fr: everything below, i.e. the footer, slid ~180px each time, and on iPhone the height change
   during Safari's bottom bounce made the footer shake. 2026-11-29.) Closed = tray hidden up inside the slot, out of the tab order. */
.t-cta-drawer{position:relative;z-index:0;width:92%;margin-top:-13px}
.t-cta-drawer-in{overflow:hidden;padding-inline:30px;margin-inline:-30px;padding-bottom:40px;visibility:hidden;transition:visibility 0s .7s}
.t-cta.is-open .t-cta-drawer-in{visibility:visible;transition:visibility 0s}
.t-cta-tray{position:relative;padding:24px 16px 40px;border-radius:0 0 20px 20px;background:linear-gradient(180deg,#FFFFFF,#F7F0ED);
  box-shadow:inset 0 12px 14px -10px rgba(28,26,26,.35),0 28px 40px -22px rgba(125,10,32,.45);transform:translateY(-101%);transition:transform .7s var(--ease-out)}
.t-cta.is-open .t-cta-tray{transform:none}
.t-cta-tray .t-cdd{box-shadow:0 14px 24px -16px rgba(28,26,26,.6)}
.t-cta-tray .t-cdd-date{display:none} /* the date is in the eyebrow; here the chip sat beside the "يوم" label and read as one line */
.t-cta-handle{position:absolute;bottom:14px;left:50%;width:96px;margin-left:-48px;height:9px;border-radius:99px;background:linear-gradient(180deg,#57504E,var(--ink));box-shadow:0 2px 0 rgba(0,0,0,.25)}

@media (prefers-reduced-motion:no-preference){
  .t-cta.is-hop .t-cta-tilly img{animation:t-cta-hop .55s var(--ease-out)}
  .t-cta.is-press .t-cta-key{animation:t-cta-press .38s var(--ease-out)}
}
@media (prefers-reduced-motion:reduce){.t-cta-tray,.t-cta-drawer-in{transition:none}}
@keyframes t-cta-hop{40%{transform:translateY(-26px) rotate(-4deg)}75%{transform:translateY(2px) scaleY(.94)}}
@keyframes t-cta-press{40%{transform:translateY(11px);box-shadow:inset 0 2px 0 rgba(255,255,255,.3),inset 0 -6px 10px rgba(0,0,0,.12),0 3px 0 var(--wine),0 5px 0 #4A0613,0 12px 14px -8px rgba(28,26,26,.5)}}

/* tablet + phone: text on top (centred), the till under it */
@media (max-width:1023px){
  .t-cta{grid-template-columns:minmax(0,1fr);gap:var(--s-6)}
  .t-cta-txt{justify-items:center;text-align:center}
  .t-cta-go{justify-content:center}
}
@media (max-width:899px){
  .t-cta-h em{display:inline}
  .t-cta-go{display:grid;width:100%;justify-items:stretch}
  .t-cta-go .t-btn{width:100%}
  .t-cta-soc{justify-self:center;justify-content:center;gap:var(--s-2)}
  .t-cta-soc .t-cta-ig{gap:8px;padding-inline-end:14px}
  .t-cta-soc .t-cta-ig-i{width:38px;height:38px}
  .t-cta-top{padding-top:116px}
  .t-cta-key{height:100px;border-radius:20px}
  .t-cta-tilly{width:86px;margin-left:-43px}
  .t-cta-body{height:56px}
  .t-cta-drawer{width:94%}
  .t-cta-tray{padding:16px 10px 34px}
  .t-cta-tray .t-cdd{--cdd-fs:1.35rem;gap:var(--s-3);padding:var(--s-3)}
  .t-cta-handle{bottom:12px}
}

/* ==========================================================================
   Privacy page: "the data receipt". Head, then index | (summary receipt + the policy on one paper sheet).
   Desktop: sticky index on the side. Phone: the index becomes a scrolling chip row.
   ========================================================================== */
.tpl-draft{margin:0 0 var(--s-5);padding:8px 14px;border-radius:10px;background:#FFF4D6;color:#6B4E00;font:600 13px/1.5 system-ui,sans-serif;border:1px dashed #D9B24A} /* template-only */
.t-priv-head{display:grid;justify-items:start;gap:var(--s-3);margin-bottom:var(--s-8)}
.t-priv-k{display:inline-flex;align-items:center;gap:8px;padding:5px 14px 5px 12px;border-radius:99px;background:var(--panel);font:700 var(--fs-small) var(--font-body);color:var(--wine)}
.t-priv-k i{width:7px;height:7px;border-radius:50%;background:var(--red)}
.t-priv-h{font-weight:900;font-size:clamp(2.1rem,1.4rem + 2.2vw,3.4rem);line-height:1.2}
.t-priv-sub{margin:0;color:var(--text-soft);font-size:1.1rem;max-width:56ch}

.t-priv-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:var(--s-9);align-items:start}
.t-priv-index{position:sticky;top:104px;display:grid;gap:2px}
.t-priv-index strong{font:700 var(--fs-micro) var(--font-body);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--text-soft);margin-bottom:var(--s-2);padding-inline:var(--s-3)}
.t-priv-index a{display:flex;align-items:center;gap:var(--s-3);min-height:44px;padding:6px var(--s-3);border-radius:12px;color:var(--text);text-decoration:none;font:600 var(--fs-small) var(--font-body);transition:background var(--dur-2),color var(--dur-2)}
.t-priv-index a b{flex:none;font:800 var(--fs-micro) var(--font-display);color:var(--text-soft)}
.t-priv-index a:hover{background:var(--panel)}
.t-priv-index a.is-on{background:var(--ink);color:var(--paper)}
.t-priv-index a.is-on b{color:var(--blush)}
.t-priv-main{display:grid;gap:var(--s-7);max-width:780px;min-width:0}

/* the summary receipt */
.t-priv-rcpt{width:min(440px,100%);filter:drop-shadow(0 18px 22px rgba(125,10,32,.16))}
.t-priv-rcpt-sheet{background:var(--surface);padding:var(--s-6) var(--s-6) calc(var(--s-6) + var(--tear));
  -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,var(--tear-cut) bottom/160px 12px repeat-x;mask:linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,var(--tear-cut) bottom/160px 12px repeat-x}
.t-priv-logo{display:block;height:20px;width:auto;margin:0 auto var(--s-2)}
.t-priv-rk{margin:0 0 var(--s-2);font:700 var(--fs-small) var(--font-display)}
.t-priv-total{font-size:1rem}
.t-priv-total span:last-child{color:var(--wine)}
.t-priv-never{display:flex;align-items:flex-start;gap:8px;margin:var(--s-4) 0 0;padding:var(--s-3);border-radius:10px;background:var(--panel);color:var(--wine);font:700 var(--fs-small)/1.5 var(--font-display)}
.t-priv-never .t-icon{flex:none;width:18px;height:18px;margin-top:2px;color:var(--red);stroke-width:2.6}

/* the policy sheet */
.t-priv-doc{filter:drop-shadow(0 22px 30px rgba(125,10,32,.12))}
.t-priv-sheet{background:var(--surface);padding:var(--s-8) var(--s-8) calc(var(--s-8) + var(--tear));border-radius:var(--r-paper) var(--r-paper) 0 0;
  -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,var(--tear-cut) bottom/160px 12px repeat-x;mask:linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,var(--tear-cut) bottom/160px 12px repeat-x}
.t-priv-part{scroll-margin-top:100px;padding-block:var(--s-6);border-top:1.5px dashed var(--dash)}
.t-priv-part:first-child{padding-top:0;border-top:0}
.t-priv-part h2{display:flex;align-items:baseline;gap:var(--s-3);font:800 clamp(1.25rem,1.1rem + .5vw,1.55rem)/1.4 var(--font-display);margin-bottom:var(--s-3)}
.t-priv-part h2 b{font-size:.7em;color:var(--red);font-variant-numeric:var(--num)}
.t-priv-part p{margin:0;color:var(--text-soft);line-height:1.85;max-width:var(--w-read)}
.t-priv-part p+ul,.t-priv-part ul+p{margin-top:var(--s-3)}
.t-priv-part ul{margin:var(--s-3) 0 0;padding:0;list-style:none;display:grid;gap:var(--s-2)}
.t-priv-part li{position:relative;padding-inline-start:22px;line-height:1.7}
.t-priv-part li::before{content:"";position:absolute;inset-inline-start:2px;top:.62em;width:8px;height:8px;border-radius:50%;background:var(--red)}
.t-priv-part a{color:var(--wine);font-weight:700}
.t-priv-upd{margin:var(--s-5) 0 0;padding-top:var(--s-4);border-top:1.5px dashed var(--dash);font-size:var(--fs-small);color:var(--text-soft)}
.t-priv-back{justify-self:start;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 var(--s-4);border-radius:99px;background:var(--panel);color:var(--wine);text-decoration:none;font:700 var(--fs-small) var(--font-display)}
.t-priv-back:hover{background:var(--blush)}
.t-priv-back-i{width:18px;height:18px;transform:scaleX(-1)}          /* points back (left in LTR) */
[dir=rtl] .t-priv-back-i{transform:none}                               /* points back (right in RTL) */

@media (max-width:1023px){.t-priv-grid{grid-template-columns:200px minmax(0,1fr);gap:var(--s-6)}.t-priv-sheet{padding-inline:var(--s-6)}}
@media (max-width:899px){
  .t-priv-head{margin-bottom:var(--s-5)}
  .t-priv-grid{grid-template-columns:minmax(0,1fr);gap:var(--s-5)}
  .t-priv-index{position:static;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-inline:calc(var(--gutter) * -1);padding:2px var(--gutter) 6px}
  .t-priv-index strong{display:none}
  .t-priv-index a{flex:none;min-height:40px;border-radius:99px;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--line);white-space:nowrap}
  .t-priv-rcpt{justify-self:center}
  .t-priv-rcpt-sheet{padding-inline:var(--s-5)}
  .t-priv-sheet{padding:var(--s-6) var(--s-5) calc(var(--s-7) + var(--tear))}
  .t-priv-part{padding-block:var(--s-5)}
}

/* Legal documents (/legal/<doc>): the privacy frame + what long legal text needs (paragraph runs, tables, quotes) */
.t-legal-doc{text-decoration:none;color:var(--text);border-radius:6px}
a.t-legal-doc:hover>:first-child{color:var(--wine);text-decoration:underline;text-underline-offset:3px}
a.t-legal-doc>:last-child{font-weight:700;font-size:var(--fs-micro);color:var(--text-soft)}
.t-legal-doc.is-on{font-weight:800;color:var(--wine)}
.t-legal-sheet .t-priv-part p+p{margin-top:var(--s-3)}
.t-legal-sheet .t-priv-part>:is(table,blockquote)+:is(p,ul),.t-legal-sheet .t-priv-part>:is(p,ul)+:is(table,blockquote){margin-top:var(--s-4)}
.t-legal-sheet strong{color:var(--text);font-weight:800}
.t-legal-sheet li{color:var(--text-soft)}
.t-legal-intro p{color:var(--text);font-size:1.05rem}
.t-legal-sheet table{display:block;overflow-x:auto;width:100%;border-collapse:collapse;font-size:var(--fs-small);line-height:1.6}
.t-legal-sheet th,.t-legal-sheet td{padding:10px 12px;text-align:start;vertical-align:top;border-bottom:1.5px dashed var(--dash);min-width:120px}
.t-legal-sheet th{font:800 var(--fs-micro) var(--font-display);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--wine);background:var(--panel);border-bottom:0}
.t-legal-sheet th:first-child{border-start-start-radius:10px;border-end-start-radius:10px}
.t-legal-sheet th:last-child{border-start-end-radius:10px;border-end-end-radius:10px}
.t-legal-sheet td{color:var(--text-soft)}
.t-legal-sheet td:first-child{color:var(--text);font-weight:600}
.t-legal-sheet blockquote{margin:0;padding:var(--s-4);border-radius:12px;background:var(--panel);color:var(--wine);font-weight:600}
.t-legal-sheet blockquote p{color:inherit}
@media (max-width:899px){.t-legal-sheet th,.t-legal-sheet td{min-width:140px}}

/* ==========================================================================
   Error pages. 404 "the void receipt" (a receipt for a page that is not there, VOID stamp, puzzled Tilly);
   500 "paper jam" (the printer with crumpled paper stuck in the slot, LED blinking). Text | object; phone: object on top.
   ========================================================================== */
.t-err{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s-7) var(--s-9);align-items:center;min-height:min(62vh,640px)}
.t-err-txt{display:grid;justify-items:start;gap:var(--s-4)}
.t-err-k{display:inline-flex;align-items:center;gap:8px;padding:5px 14px 5px 12px;border-radius:99px;background:var(--panel);font:700 var(--fs-small) var(--font-body);color:var(--wine);font-variant-numeric:var(--num)}
.t-err-k i{width:7px;height:7px;border-radius:50%;background:var(--red)}
.t-err-h{font-weight:900;font-size:clamp(2.1rem,1.4rem + 2.2vw,3.4rem);line-height:1.2}
.t-err-p{margin:0;color:var(--text-soft);font-size:1.08rem;max-width:44ch}
.t-err-go{display:flex;flex-wrap:wrap;gap:var(--s-3);margin-top:var(--s-3)}
.t-err-obj{position:relative;justify-self:center;width:min(420px,100%);display:grid;justify-items:center}

/* Tilly beside the object, with a thought mark */
.t-err-tilly{position:absolute;z-index:3;bottom:-6px;inset-inline-end:-34px;width:104px}
.t-err-tilly img{display:block;width:100%;height:auto;filter:drop-shadow(0 12px 12px rgba(125,10,32,.2));transform:rotate(-6deg);transform-origin:50% 100%}
.t-err-tilly b{position:absolute;top:-14px;inset-inline-start:-4px;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--surface);color:var(--red);font:900 1.3rem/1 var(--font-display);box-shadow:0 8px 16px -8px rgba(125,10,32,.45)}

/* 404: the void receipt */
.t-err-rcpt{width:min(340px,100%)}
.t-err-rcpt .t-receipt-paper{filter:drop-shadow(0 16px 18px rgba(125,10,32,.16))}
.t-err-logo{display:block;height:20px;width:auto;margin:0 auto var(--s-2)}
.t-err-rcpt .t-line>:last-child{color:var(--red)}
.t-err-rcpt .t-stamp{inset-inline-start:50%;bottom:auto;top:83%;translate:-50% -50%;font-size:2.2rem;border-width:5px;padding:2px 22px;letter-spacing:.08em;transform:rotate(-14deg);mix-blend-mode:multiply}
[dir=rtl] .t-err-rcpt .t-stamp{translate:50% -50%}

/* 500: the paper jam */
.t-err-jam{position:relative;width:min(380px,100%);padding-top:18px}
.t-err-printer{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;height:54px;padding:0 20px 12px;border-radius:16px 16px 12px 12px;
  background:linear-gradient(180deg,#3A3534 0%,var(--ink) 38%,#141212 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 6px 0 #0B0A0A,0 30px 34px -14px rgba(28,26,26,.6)}
.t-err-printer::before{content:"";position:absolute;inset-inline:10px;bottom:100%;height:16px;border-radius:14px 14px 0 0;background:linear-gradient(180deg,#57504E,#3A3534);clip-path:polygon(5% 0,95% 0,100% 100%,0 100%)}
.t-err-printer::after{content:"";position:absolute;inset-inline:22px;bottom:8px;height:5px;border-radius:99px;background:#050404}
.t-err-printer img{height:13px;width:auto;opacity:.85}
.t-err-led{width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 8px 2px rgba(198,1,39,.85)}
/* the crumpled paper: five folds pushed back up against the slot, each turned a different way */
.t-err-paper{position:relative;z-index:1;display:grid;justify-items:center;margin-top:-6px;filter:drop-shadow(0 14px 14px rgba(125,10,32,.18))}
.t-err-paper i{display:block;width:72%;height:34px;margin-top:-8px;background:linear-gradient(180deg,#FFFFFF,#ECE6E3);border-radius:2px;box-shadow:inset 0 -6px 8px -6px rgba(28,26,26,.25)}
.t-err-paper i:nth-child(1){width:78%;rotate:-3deg;margin-top:0}
.t-err-paper i:nth-child(2){rotate:5deg;translate:10px 0;background:linear-gradient(0deg,#FFFFFF,#E6DFDC)}
.t-err-paper i:nth-child(3){rotate:-6deg;translate:-12px 0}
.t-err-paper i:nth-child(4){rotate:7deg;translate:14px 0;background:linear-gradient(0deg,#FFFFFF,#E6DFDC)}
.t-err-paper i:nth-child(5){height:44px;rotate:-4deg;translate:-6px 0;-webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,var(--tear-cut) bottom/160px 12px repeat-x;mask:linear-gradient(#000 0 0) top/100% calc(100% - 11px) no-repeat,var(--tear-cut) bottom/160px 12px repeat-x}
.t-err--500 .t-err-tilly{bottom:-20px}

@media (prefers-reduced-motion:no-preference){
  .t-err-txt>*{animation:t-hero-rise .8s var(--ease-out) both}
  .t-err-h{animation-delay:.08s!important}.t-err-p{animation-delay:.16s!important}.t-err-go{animation-delay:.24s!important}
  .t-err-tilly img{animation:t-err-puzzle 3.2s ease-in-out 1s infinite}
  .t-err-tilly b{animation:t-pop .4s var(--ease-snap) 2s both}
  .t-err-led{animation:t-blink .5s steps(1) infinite}
  .t-err-printer{animation:t-err-shake 2.4s ease-in-out .6s infinite}
  .t-err-rcpt.is-printing .t-stamp{animation:t-slam .45s var(--ease-snap) 1.6s both}
}
@keyframes t-err-puzzle{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(4deg)}}
@keyframes t-err-shake{0%,70%,100%{translate:0 0}74%{translate:-3px 0}78%{translate:3px 0}82%{translate:-2px 0}86%{translate:2px 0}}

@media (max-width:899px){
  .t-err{grid-template-columns:minmax(0,1fr);gap:var(--s-6);min-height:0}
  .t-err-obj{order:-1;width:min(300px,calc(100% - 70px))}
  .t-err-txt{justify-items:center;text-align:center}
  .t-err-go{display:grid;width:100%}
  .t-err-go .t-btn{width:100%}
  .t-err-tilly{width:80px;inset-inline-end:-56px}
  .t-err-rcpt .t-stamp{font-size:1.7rem}
}
