/* Referral page (page-referral.php), scoped to .thrf. A present between friends: blush paper, snapshots from real
   moves, two gift tickets, a chat and a "how many friends" slider. */
.thrf{--ink:#0D3659;--plum:#8F3985;--deep:#5B1F54;--blush:#FCEFF3;--peach:#FFE4D3;--text:#4A4357;font-family:Inter,"Inter Fallback",system-ui,sans-serif;color:var(--text);background:#fff;overflow-x:clip;-webkit-font-smoothing:antialiased}
.thrf *,.thrf *:before,.thrf *:after{box-sizing:border-box}
.thrf svg{flex:none}
.thrf :is(ul,ol,dl,dd){list-style:none;margin:0;padding:0}
.thrf .rf-wrap{max-width:1232px;margin:0 auto;padding:0 40px}
.thrf :is(a,button,summary,input):focus-visible{outline:3px solid #C46BB9;outline-offset:3px}
.thrf .rf-h{margin:0;font-size:40px;font-weight:800;line-height:1.1;letter-spacing:-.025em;color:var(--ink);text-align:left;text-wrap:balance}
.thrf .rf-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:0 30px;border:0;border-radius:999px;font-family:inherit;font-size:17px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:background .2s,color .2s,transform .2s}
.thrf .rf-p{background:var(--plum);color:#fff;box-shadow:0 10px 24px rgba(143,57,133,.3)}.thrf .rf-p:hover{background:#6E2B66;color:#fff}
.thrf .rf-w{background:#fff;color:var(--ink)}.thrf .rf-w:hover{background:var(--blush);color:var(--ink)}
.thrf .rf-o{background:none;color:var(--ink);box-shadow:inset 0 0 0 2px rgba(13,54,89,.22)}.thrf .rf-o:hover{box-shadow:inset 0 0 0 2px var(--ink);color:var(--ink)}
.thrf .rf-acts{display:flex;flex-wrap:wrap;gap:14px;margin-top:32px}
.thrf .rf-sec{padding:104px 0}

/* snapshots */
.thrf .rf-snap{margin:0;padding:12px 12px 0;background:#fff;border-radius:6px;box-shadow:0 2px 4px rgba(91,31,84,.08),0 22px 50px rgba(91,31,84,.2)}
.thrf .rf-snap img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:3px}
.thrf .rf-snap figcaption{padding:12px 4px 14px;font-size:15px;font-weight:600;color:var(--ink);text-align:center}

/* hero */
.thrf .rf-hero{position:relative;background:linear-gradient(165deg,#FFF1E8 0%,var(--blush) 46%,#F3E3F6 100%)}
.thrf .rf-hero-in{display:grid;grid-template-columns:minmax(0,10fr) minmax(0,11fr);gap:56px;align-items:center;padding-top:72px;padding-bottom:96px}
.thrf .rf-title{margin:0;font-size:68px;line-height:1;font-weight:800;letter-spacing:-.04em;color:var(--ink);text-align:left;text-wrap:balance}
.thrf .rf-lede{margin:24px 0 0;font-size:19px;line-height:1.6;max-width:520px}
.thrf .rf-stage{position:relative;height:590px}
.thrf .rf-stage .rf-snap{position:absolute}
.thrf .rf-s1{width:300px;left:0;top:14px;transform:rotate(-6deg)}
.thrf .rf-s2{width:276px;right:4px;top:30px;transform:rotate(5deg)}
.thrf .rf-tks{position:absolute;left:24px;right:0;bottom:0;display:grid;grid-template-columns:1fr 1fr;gap:0}
.thrf .rf-tk{position:relative;padding:24px 28px 26px;background:var(--plum);color:#fff;border-radius:20px;-webkit-mask:radial-gradient(circle 13px at 100% 50%,#0000 98%,#000) right/51% 100% no-repeat,linear-gradient(#000 0 0) left/50% 100% no-repeat;mask:radial-gradient(circle 13px at 100% 50%,#0000 98%,#000) right/51% 100% no-repeat,linear-gradient(#000 0 0) left/50% 100% no-repeat}
.thrf .rf-tk + .rf-tk{background:var(--ink);-webkit-mask:radial-gradient(circle 13px at 0 50%,#0000 98%,#000) left/51% 100% no-repeat,linear-gradient(#000 0 0) right/50% 100% no-repeat;mask:radial-gradient(circle 13px at 0 50%,#0000 98%,#000) left/51% 100% no-repeat,linear-gradient(#000 0 0) right/50% 100% no-repeat}
.thrf .rf-tk:before{content:"";position:absolute;right:0;top:16px;bottom:16px;border-right:2px dashed rgba(255,255,255,.4)}
.thrf .rf-tk + .rf-tk:before{display:none}
.thrf .rf-tk dt{font-size:16px;font-weight:600;color:#F6DDF2}
.thrf .rf-tk + .rf-tk dt{color:#D6E2F0}
.thrf .rf-tk dd{font-size:64px;line-height:1;font-weight:800;letter-spacing:-.05em;margin-top:4px}
.thrf .rf-tk small{display:block;margin-top:8px;font-size:15px;line-height:1.35;color:#fff}

/* chat + steps */
.thrf .rf-story{display:grid;grid-template-columns:minmax(0,9fr) minmax(0,11fr);gap:88px;align-items:center}
.thrf .rf-chat{position:relative;padding:32px 28px;border-radius:36px;background:linear-gradient(160deg,var(--peach),#F7D9EC)}
.thrf .rf-chat p{position:relative;width:fit-content;max-width:86%;margin:0;padding:14px 18px;border-radius:22px;font-size:17px;line-height:1.45;color:var(--ink);background:#fff}
.thrf .rf-chat p + *{margin-top:10px}
.thrf .rf-chat .is-me{margin-left:auto;background:var(--plum);color:#fff;border-bottom-right-radius:6px}
.thrf .rf-chat .is-fr{border-bottom-left-radius:6px}
.thrf .rf-link{width:86%;margin:10px 0 18px auto;border-radius:22px;overflow:hidden;background:#fff}
.thrf .rf-link img{display:block;width:100%;height:auto}
.thrf .rf-link .rf-link-a{padding:18px 18px 0;background:#F7F0FA}
.thrf .rf-link b{display:block;padding:14px 18px 2px;font-size:17px;color:var(--ink)}
.thrf .rf-link span{display:block;padding:0 18px 16px;font-size:15px;color:#5B6475}
.thrf .rf-done{display:flex;align-items:center;gap:12px;width:fit-content;margin:18px auto 0;padding:10px 18px 10px 12px;border-radius:999px;background:var(--ink);color:#fff;font-size:16px;font-weight:600}
.thrf .rf-done svg{padding:4px;width:26px;height:26px;border-radius:50%;background:#fff;color:var(--plum)}
.thrf .rf-steps{margin-top:36px;counter-reset:s}
.thrf .rf-steps li{position:relative;display:flex;gap:24px;padding-bottom:36px}
.thrf .rf-steps li:last-child{padding-bottom:0}
.thrf .rf-steps li:not(:last-child):before{content:"";position:absolute;left:39px;top:84px;bottom:4px;border-left:3px dotted #E3B9DD}
.thrf .rf-steps .rf-pic{flex:none;width:80px;height:80px;border-radius:26px;display:flex;align-items:center;justify-content:center;background:var(--blush)}
.thrf .rf-steps li:nth-child(2) .rf-pic{background:#E9F6E4}
.thrf .rf-steps li:nth-child(3) .rf-pic{background:#FFEFD6}
.thrf .rf-pic img{width:54px;height:54px;object-fit:contain}
.thrf .rf-steps strong{display:block;padding-top:6px;font-size:22px;font-weight:800;line-height:1.3;letter-spacing:-.015em;color:var(--ink)}
.thrf .rf-steps p{margin:6px 0 0;font-size:17px;line-height:1.55}

/* how many friends */
.thrf .rf-calc{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:32px 64px;align-items:center;padding:56px 64px;border-radius:40px;background:radial-gradient(700px 420px at 92% 0,#A9479E,rgba(169,71,158,0)),linear-gradient(120deg,#4A1946,#7B2F73);color:#fff}
.thrf .rf-calc .rf-h{color:#fff}
.thrf .rf-calc label{display:block;margin-top:24px;font-size:18px;font-weight:600}
.thrf .rf-calc output{font-variant-numeric:tabular-nums}
.thrf .rf-sum{min-width:280px;text-align:right}
.thrf .rf-sum b{display:block;font-size:112px;line-height:.95;font-weight:800;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.thrf .rf-sum span{display:block;margin-top:12px;font-size:17px;color:#F6DDF2}
.thrf .rf-calc input[type=range]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:44px;margin:8px 0 0;background:none;cursor:pointer}
.thrf .rf-calc input::-webkit-slider-runnable-track{height:12px;border-radius:99px;background:linear-gradient(90deg,#FFC9A6 var(--at,20%),rgba(255,255,255,.24) var(--at,20%))}
.thrf .rf-calc input::-webkit-slider-thumb{-webkit-appearance:none;width:36px;height:36px;margin-top:-12px;border-radius:50%;border:0;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.thrf .rf-calc input::-moz-range-track{height:12px;border-radius:99px;background:rgba(255,255,255,.24)}
.thrf .rf-calc input::-moz-range-progress{height:12px;border-radius:99px;background:#FFC9A6}
.thrf .rf-calc input::-moz-range-thumb{width:36px;height:36px;border-radius:50%;border:0;background:#fff}
.thrf .rf-faces{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;min-height:56px}
.thrf .rf-faces svg{width:56px;height:56px;border-radius:50%;transition:transform .25s cubic-bezier(.3,1.5,.5,1),opacity .2s}
.thrf .rf-faces svg.is-off{opacity:.38;transform:scale(.72)}

/* how it works, why, start */
.thrf .rf-how{margin-top:44px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px}
.thrf .rf-how b{display:block;margin-bottom:8px;font-size:20px;font-weight:800;line-height:1.3;color:var(--ink)}
.thrf .rf-how .rf-n{display:block;margin-bottom:16px;font-size:56px;line-height:1;font-weight:800;letter-spacing:-.04em;color:#D58ACB}
.thrf .rf-how span:last-child,.thrf .rf-why span span{font-size:17px;line-height:1.55}
.thrf .rf-tint{background:#FFF8F3}
.thrf .rf-whyg{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:88px;align-items:center}
.thrf .rf-whyg .rf-snap{width:min(100%,380px);margin:0 auto;transform:rotate(-4deg)}
.thrf .rf-why{margin-top:32px}
.thrf .rf-why li{display:flex;gap:20px;padding:22px 0;border-top:1px solid #F0DDE8}
.thrf .rf-why li:first-child{border-top:0;padding-top:0}
.thrf .rf-why .rf-ic{flex:none;width:52px;height:52px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:#F7E1F3;color:var(--plum)}
.thrf .rf-why li:nth-child(2) .rf-ic{background:#DDEBF8;color:var(--ink)}
.thrf .rf-why li:nth-child(3) .rf-ic{background:var(--peach);color:#A24A14}
.thrf .rf-why b{display:block;margin-bottom:4px;font-size:20px;font-weight:800;line-height:1.35;color:var(--ink)}
.thrf .rf-start{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:64px;align-items:center}
.thrf .rf-start .rf-snap{width:min(100%,320px);margin:0 auto;transform:rotate(4deg)}
.thrf .rf-text p{margin:18px 0 0;font-size:18px;line-height:1.6;overflow-wrap:anywhere}

/* accounts */
.thrf .rf-acc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:44px}
.thrf .rf-acc > div{display:flex;flex-direction:column;align-items:flex-start;padding:40px;border-radius:36px;background:linear-gradient(150deg,var(--peach),#F9DCEB)}
.thrf .rf-acc > div + div{background:linear-gradient(150deg,#DCEAF8,#E9E3F8)}
.thrf .rf-acc img{width:80px;height:80px;padding:13px;object-fit:contain;border-radius:26px;background:#fff}
.thrf .rf-acc strong{margin-top:24px;font-size:28px;font-weight:800;letter-spacing:-.02em;line-height:1.2;color:var(--ink)}
.thrf .rf-acc p{margin:10px 0 28px;font-size:18px;line-height:1.55;max-width:440px}
.thrf .rf-acc .rf-btn{margin-top:auto}

/* coupon */
.thrf .rf-coupon{display:grid;grid-template-columns:minmax(0,1fr) auto;background:var(--ink);border-radius:32px;-webkit-mask:radial-gradient(circle 18px at calc(100% - 300px) 0,#0000 98%,#000) top/100% 51% no-repeat,radial-gradient(circle 18px at calc(100% - 300px) 100%,#0000 98%,#000) bottom/100% 51% no-repeat;mask:radial-gradient(circle 18px at calc(100% - 300px) 0,#0000 98%,#000) top/100% 51% no-repeat,radial-gradient(circle 18px at calc(100% - 300px) 100%,#0000 98%,#000) bottom/100% 51% no-repeat}
.thrf .rf-coupon .rf-h{padding:56px 64px;color:#fff;font-size:34px}
.thrf .rf-coupon div{width:300px;display:flex;align-items:center;justify-content:center;border-left:2px dashed rgba(255,255,255,.35)}

.thrf .rf-faqg{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:64px}
.thrf .rf-faq details{border-bottom:1px solid #F0DDE8}
.thrf .rf-faq summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;font-size:18px;font-weight:700;line-height:1.4;color:var(--ink);cursor:pointer;list-style:none}
.thrf .rf-faq summary::-webkit-details-marker{display:none}
.thrf .rf-faq summary h3{margin:0;font:inherit;color:inherit}
.thrf .rf-faq summary:hover h3{color:var(--plum)}
.thrf .rf-faq summary svg{color:var(--plum);transition:transform .2s}
.thrf .rf-faq details[open] summary svg{transform:rotate(90deg)}
.thrf .rf-a{padding:0 44px 24px 0;font-size:17px;line-height:1.65}
.thrf .rf-a :is(p,ul){margin:0 0 12px}
.thrf .rf-a ul{list-style:disc;padding-left:22px}
.thrf .rf-a a{color:var(--plum);text-decoration:underline}

@media (prefers-reduced-motion:no-preference){
  .thrf .rf-stage .rf-snap{transition:transform .35s}
  .thrf .rf-stage .rf-s1:hover{transform:rotate(-2deg) translateY(-6px)}
  .thrf .rf-stage .rf-s2:hover{transform:rotate(1deg) translateY(-6px)}
}
@media (max-width:1100px){
  .thrf .rf-hero-in{grid-template-columns:minmax(0,1fr);gap:48px}
  .thrf .rf-title{font-size:56px}
  .thrf .rf-stage{width:100%;max-width:600px;margin:0 auto}
  .thrf .rf-story,.thrf .rf-whyg,.thrf .rf-start{gap:48px}
  .thrf .rf-story{grid-template-columns:minmax(0,1fr)}
  .thrf .rf-story > :first-child{order:2}
  .thrf .rf-how{grid-template-columns:repeat(2,minmax(0,1fr))}
  .thrf .rf-calc{padding:44px 40px;gap:24px 40px}
  .thrf .rf-sum{min-width:220px}.thrf .rf-sum b{font-size:84px}
  .thrf .rf-faqg{grid-template-columns:minmax(0,1fr);gap:24px}
}
@media (max-width:760px){
  .thrf .rf-wrap{padding:0 16px}
  .thrf .rf-sec{padding:64px 0}
  .thrf .rf-h{font-size:30px}
  .thrf .rf-hero-in{padding-top:36px;padding-bottom:56px;gap:36px}
  .thrf .rf-title{font-size:44px}
  .thrf .rf-lede{font-size:17px;margin-top:16px}
  .thrf .rf-acts{margin-top:24px}
  .thrf .rf-acts .rf-btn{flex:1 1 100%}
  .thrf .rf-stage{height:auto;padding-top:6px}
  .thrf .rf-stage .rf-snap{position:relative;display:block;padding:8px 8px 0}
  .thrf .rf-snaps{display:flex;align-items:flex-start}
  .thrf .rf-s1{width:50%;top:0;transform:rotate(-3deg)}
  .thrf .rf-s2{width:50%;right:0;top:16px;transform:rotate(3deg)}
  .thrf .rf-snap figcaption{font-size:14px;padding:8px 2px 10px}
  .thrf .rf-tks{position:relative;left:0;margin-top:40px}
  .thrf .rf-tk{padding:18px 18px 20px}
  .thrf .rf-tk dt{font-size:15px}.thrf .rf-tk dd{font-size:50px}
  .thrf .rf-chat{padding:24px 16px;border-radius:28px}
  .thrf .rf-chat p,.thrf .rf-link b{font-size:16px}
  .thrf .rf-chat p,.thrf .rf-link{max-width:90%;width:fit-content}.thrf .rf-link{width:90%}
  .thrf .rf-steps{margin-top:28px}
  .thrf .rf-steps li{gap:18px}
  .thrf .rf-steps .rf-pic{width:64px;height:64px;border-radius:20px}
  .thrf .rf-steps .rf-pic img{width:44px;height:44px}
  .thrf .rf-steps li:not(:last-child):before{left:31px;top:68px}
  .thrf .rf-steps strong{padding-top:0;font-size:20px}
  .thrf .rf-calc{grid-template-columns:minmax(0,1fr);padding:32px 20px;border-radius:28px;margin:0}
  .thrf .rf-sum{text-align:left;min-width:0}.thrf .rf-sum b{font-size:84px}
  .thrf .rf-faces{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.thrf .rf-faces svg{width:100%;height:auto;max-width:56px}
  .thrf .rf-how,.thrf .rf-whyg,.thrf .rf-start,.thrf .rf-acc{grid-template-columns:minmax(0,1fr)}
  .thrf .rf-how{gap:28px;margin-top:28px}
  .thrf .rf-how li{display:grid;grid-template-columns:44px minmax(0,1fr)}
  .thrf .rf-how .rf-n{grid-row:1/3;font-size:40px;margin:0}
  .thrf .rf-whyg .rf-snap{width:240px}.thrf .rf-start .rf-snap{width:240px}
  .thrf .rf-acc{gap:16px;margin-top:28px}
  .thrf .rf-acc > div{padding:28px 24px;border-radius:28px}
  .thrf .rf-acc strong{font-size:24px}.thrf .rf-acc p{font-size:17px}
  .thrf .rf-acc .rf-btn{width:100%}
  .thrf .rf-coupon{grid-template-columns:minmax(0,1fr);border-radius:28px;-webkit-mask:radial-gradient(circle 14px at 0 calc(100% - 112px),#0000 98%,#000) left/51% 100% no-repeat,radial-gradient(circle 14px at 100% calc(100% - 112px),#0000 98%,#000) right/51% 100% no-repeat;mask:radial-gradient(circle 14px at 0 calc(100% - 112px),#0000 98%,#000) left/51% 100% no-repeat,radial-gradient(circle 14px at 100% calc(100% - 112px),#0000 98%,#000) right/51% 100% no-repeat}
  .thrf .rf-coupon .rf-h{padding:32px 24px;font-size:26px}
  .thrf .rf-coupon div{width:auto;height:112px;padding:0 24px;border-left:0;border-top:2px dashed rgba(255,255,255,.35)}
  .thrf .rf-coupon .rf-btn{width:100%}
  .thrf .rf-a{padding-right:0}
}
@media (prefers-reduced-motion:reduce){.thrf *{transition:none!important}}
