/* landing.css: makes /static-ads and /thumbnails feel like their own landing pages.
   1) hero copied from the homepage (word-by-word headline, availability pill, proof row)
   2) "How it works" as one straight row of step cards (name on top, animation below)
   3) smooth open / close for the FAQ (with landing.js) */

/* ---------- 1. hero ---------- */
.lp-hero{padding:clamp(70px,9vw,120px) 0 clamp(40px,5vw,60px)}
.lp-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:26px;font-size:13px;color:var(--text-secondary)}
.lp-avail{display:inline-flex;align-items:center;gap:9px;height:34px;padding:0 14px 0 12px;border-radius:999px;background:#EAF8EF;color:#166534;font-weight:500;font-size:13px;transition:background .2s}
.lp-avail:hover{background:#DDF3E5}
html.dark .lp-avail{background:#0F2A1A;color:#7EE2A6}
.lp-dot{width:8px;height:8px;border-radius:50%;background:#1FB954;position:relative;display:inline-block}
.lp-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:#1FB954;animation:lp-ping 1.8s infinite}
@keyframes lp-ping{0%{transform:scale(1);opacity:.7}100%{transform:scale(2.6);opacity:0}}
html body .lp-hero h1{font-size:clamp(40px,7vw,108px);line-height:1;letter-spacing:-.055em;font-weight:600;margin:0;max-width:none;color:var(--text-primary)}
.lp-hero h1 em{font-style:normal;color:var(--accent)}
.lp-hero .word{display:inline-block;overflow:hidden;vertical-align:top;padding:0 .12em .2em;margin:0 -.12em -.14em}
.lp-hero .word span{display:inline-block;transform:translateY(105%);animation:lp-up .9s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes lp-up{to{transform:translateY(0)}}
.lp-row{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap;margin-top:36px}
html body .lp-sub{font-size:18px;line-height:1.55;color:var(--text-body);margin:0;max-width:600px}
.lp-actions{display:flex;gap:10px;flex-wrap:wrap}
.lp-btn{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 20px;background:var(--text-primary);color:var(--bg-base);border-radius:999px;font-size:14.5px;font-weight:500;transition:background .25s,transform .25s,color .25s;white-space:nowrap;text-decoration:none}
.lp-btn:hover{background:var(--accent);color:#fff;transform:translateY(-1px)}
.lp-btn .arr{transition:transform .25s}.lp-btn:hover .arr{transform:translateX(3px)}
.lp-btn.ghost{background:transparent;color:var(--text-primary);box-shadow:inset 0 0 0 1px var(--text-primary)}
.lp-btn.ghost:hover{background:var(--text-primary);color:var(--bg-base)}
.lp-proof{display:grid;grid-template-columns:repeat(4,1fr);margin-top:clamp(40px,5vw,64px);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.lp-proof>div{padding:18px 18px 18px 0;border-right:1px solid var(--border)}
.lp-proof>div:not(:first-child){padding-left:18px}
.lp-proof>div:last-child{border-right:0}
.lp-proof b{display:block;font-size:clamp(22px,2.4vw,32px);font-weight:600;letter-spacing:-.04em;color:var(--text-primary)}
.lp-proof span{font-size:13px;color:var(--text-secondary)}
.lp-rv{opacity:0;transform:translateY(24px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.8,.2,1)}
.lp-rv.in{opacity:1;transform:none}
@media(max-width:700px){
  .lp-sub br{display:none}
  .lp-proof{grid-template-columns:1fr 1fr}
  .lp-proof>div:nth-child(2){border-right:0}
  .lp-proof>div:nth-child(-n+2){border-bottom:1px solid var(--border)}
  .lp-proof>div:nth-child(3){padding-left:0}
}

/* ---------- 2. How it works: straight row ---------- */
.hr{position:relative;margin-top:28px}
.hr-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 2px 18px;scroll-behavior:smooth}
.hr-track::-webkit-scrollbar{display:none}
.hr-step{flex:0 0 clamp(260px,30%,330px);scroll-snap-align:start;display:flex;flex-direction:column}
.hr-top{position:relative;display:flex;align-items:center;gap:10px;padding:0 0 14px}
.hr-top::before{content:"";position:absolute;left:0;right:-16px;top:calc(100% - 1px);height:2px;background:var(--border)}
.hr-step:last-child .hr-top::before{right:0}
.hr-top::after{content:"";position:absolute;left:0;top:calc(100% - 1px);height:2px;width:0;background:var(--accent);transition:width .9s cubic-bezier(.2,.8,.2,1)}
.hr-step.in .hr-top::after{width:calc(100% + 16px)}
.hr-step:last-child.in .hr-top::after{width:100%}
.hr-n{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff;font-size:12.5px;font-weight:600;flex:none}
html body .hr-top h3{margin:0;font-size:22px;letter-spacing:-.03em;font-weight:600}
.hr-step p{margin:14px 0 14px;font-size:14.5px;line-height:1.55;color:var(--text-secondary);min-height:3.1em}
.hiw .hr-stage{position:relative;height:230px;border-radius:20px;overflow:hidden;background:var(--soft);box-shadow:0 0 0 1px var(--line);margin-top:auto}
.hiw .hr-stage .bs{position:absolute;left:50%;top:50%;width:520px;height:400px;transform:translate(-50%,-50%) scale(.56)}
.hr-ctl{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:4px}
.hr-ctl .hr-hint{font-size:13px;color:var(--text-secondary)}
.hr-btns{display:flex;gap:8px}
.hr-btns button{width:42px;height:42px;border-radius:50%;border:0;background:var(--surface);color:var(--text-primary);box-shadow:0 0 0 1px var(--border);font-size:18px;cursor:pointer;transition:background .2s,color .2s,opacity .2s}
.hr-btns button:hover{background:var(--text-primary);color:var(--bg-base)}
.hr-btns button[disabled]{opacity:.35;cursor:default;background:var(--surface);color:var(--text-primary)}
@media(max-width:700px){.hr-step{flex-basis:82%}}

/* ---------- 3. FAQ open / close ---------- */
html body .faq-item summary::after{transition:transform .35s cubic-bezier(.2,.8,.2,1),background .25s,color .25s}
html body .faq-item[open] summary::after{transform:rotate(180deg)}
html body .faq-item p{animation:none}
.faq-item.is-anim{overflow:hidden}
.faq-item .faq-a{opacity:0;transform:translateY(-8px);transition:opacity .35s ease .05s,transform .45s cubic-bezier(.2,.8,.2,1) .05s}
.faq-item[open]:not(.is-closing) .faq-a{opacity:1;transform:none}

@media(prefers-reduced-motion:reduce){
  .lp-hero .word span{transform:none;animation:none}.lp-rv{opacity:1;transform:none}
  .hr-top::after{transition:none}.faq-item .faq-a{transition:none}
}

/* ---------- 2b. How it works: 4 steps on one screen ---------- */
.hr--grid .hr-track{display:grid;grid-template-columns:repeat(4,1fr);overflow:visible;padding:4px 0 0}
.hr--grid .hr-step{flex:none}
.hr--grid .hr-step:not(:last-child) .hr-top::before{right:-16px}
.hr--grid .hr-step{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .8s cubic-bezier(.2,.8,.2,1)}
.hr--grid .hr-step.in{opacity:1;transform:none}
.hr--grid .hr-step:nth-child(2){transition-delay:.12s}.hr--grid .hr-step:nth-child(3){transition-delay:.24s}.hr--grid .hr-step:nth-child(4){transition-delay:.36s}
.hr--grid .hr-step:nth-child(2) .hr-top::after{transition-delay:.3s}.hr--grid .hr-step:nth-child(3) .hr-top::after{transition-delay:.6s}.hr--grid .hr-step:nth-child(4) .hr-top::after{transition-delay:.9s}
.hiw.hr--grid .hr-stage{height:210px}
.hiw.hr--grid .hr-stage .bs{transform:translate(-50%,-50%) scale(.5)}
@media(max-width:1000px){.hr--grid .hr-track{grid-template-columns:1fr 1fr;row-gap:32px}.hr--grid .hr-step:nth-child(2) .hr-top::before{right:0}}
@media(max-width:600px){.hr--grid .hr-track{grid-template-columns:1fr}.hr--grid .hr-step .hr-top::before{right:0!important}.hr--grid .hr-step{transition-delay:0s!important}}

/* ---------- 3b. FAQ: slide in one by one, lift on hover ---------- */
.faq-list .faq-item{opacity:0;transform:translateY(22px)}
.faq-list.in .faq-item{opacity:1;transform:none;transition:opacity .6s ease var(--d,0s),transform .7s cubic-bezier(.2,.8,.2,1) var(--d,0s),background .3s,border-color .3s,box-shadow .3s}
html body .faq-list.in .faq-item:hover{transform:translateY(-3px);box-shadow:0 14px 30px -18px rgba(14,14,14,.25)}
html body .faq-item summary{transition:padding .35s cubic-bezier(.2,.8,.2,1),color .25s}
html body .faq-item:hover summary{padding-left:30px}
html body .faq-item summary::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:0 3px 3px 0;background:var(--accent);transform:scaleY(0);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
html body .faq-item summary{position:relative}
html body .faq-item:hover summary::before,html body .faq-item[open] summary::before{transform:scaleY(1)}
html body .faq-item:hover summary::after{transform:rotate(90deg)}
html body .faq-item[open]:hover summary::after{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.faq-list .faq-item,.hr--grid .hr-step{opacity:1;transform:none;transition:none}}

/* Available now: bigger, floats gently */
.avail,.lp-avail{height:42px!important;padding:0 18px 0 15px!important;font-size:14.5px!important;font-weight:600!important;gap:10px!important;position:relative;overflow:hidden;box-shadow:none;animation:av-float 3.2s ease-in-out infinite}

.avail .dot,.lp-avail .lp-dot{width:10px!important;height:10px!important}
.avail:hover,.lp-avail:hover{animation-play-state:paused;transform:translateY(-2px) scale(1.03)}
@keyframes av-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}

@media(prefers-reduced-motion:reduce){.avail,.lp-avail{animation:none}}
