/* =========================================================
   PieGP homepage layout (loaded after style.css on index.php only)
   ========================================================= */

/* ---------- hero ---------- */
.h-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:center;max-width:1240px;margin:0 auto;padding:clamp(28px,5vw,64px) clamp(16px,4vw,48px) clamp(24px,4vw,40px);min-height:min(calc(100vh - 110px),760px)}
.h-status{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#c4d2f3;background:#ffffff0a;border:1px solid var(--line);padding:7px 14px;border-radius:999px}
.h-status.on{border-color:#3ee08f40;background:#3ee08f0d}
.h-status i{font-style:normal;color:var(--line2)}
.h-status.small{font-size:13px;padding:5px 12px;margin-top:14px}
.h-hero h1{font-size:clamp(44px,6.4vw,86px);line-height:.98;margin:20px 0 16px;font-weight:700;letter-spacing:-.01em}
.h-hero .lead{margin:0;max-width:540px}

.h-prices{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));margin:28px 0 26px;max-width:540px;background:linear-gradient(180deg,#132a63cc,#0e1f4ccc);border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 50px -24px #000;overflow:hidden}
.h-prices>div{display:flex;flex-direction:column;padding:14px 18px;position:relative}
.h-prices>div+div::before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:1px;background:var(--line)}
.h-prices small{color:var(--muted);font-size:12.5px;line-height:1.3}
.h-prices b{font:700 clamp(24px,2.6vw,32px) Fredoka,sans-serif;color:var(--gold);line-height:1.15;display:inline-block;text-shadow:0 0 22px #ffcf4a40}

.h-trust{list-style:none;display:flex;flex-wrap:wrap;gap:8px 22px;padding:0;margin:26px 0 0;color:#b8c7ea;font-size:14.5px}
.h-trust li{display:flex;align-items:center;gap:8px}
.h-trust i{color:var(--good);font-size:14px}

.h-art{position:relative;justify-self:center;width:100%;max-width:540px}
.h-art .hero-art{max-width:none}
.h-art .hero-pieman{left:-8%;bottom:-4%;width:40%}
.h-float{position:absolute;display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:16px;background:#0b1a3fe6;backdrop-filter:blur(10px);border:1px solid var(--line2);box-shadow:0 18px 40px -16px #000;z-index:4;animation:hfloat 5s ease-in-out infinite}
.h-float i{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:radial-gradient(circle at 30% 30%,#fff3b0,var(--gold) 50%,var(--gold2));color:#5a3500;font-size:16px;flex:none}
.h-float b{display:block;font:700 18px Fredoka,sans-serif;line-height:1.1}
.h-float small{color:var(--muted);font-size:12.5px}
.h-float.f1{top:2%;left:-4%}
.h-float.f2{bottom:10%;right:-4%;animation-delay:1.4s}
@keyframes hfloat{50%{transform:translateY(-10px)}}

/* ---------- payment strip ---------- */
.h-strip{display:flex;align-items:center;gap:18px;max-width:1240px;margin:0 auto;padding:12px clamp(16px,4vw,48px) 8px}
.h-strip-label{flex:none;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.h-strip-viewport{flex:1;overflow:hidden;-webkit-mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.h-strip-track{display:flex;gap:10px;width:max-content;animation:hstrip 60s linear infinite}
.h-strip:hover .h-strip-track{animation-play-state:paused}
@keyframes hstrip{to{transform:translateX(calc(-50% - 5px))}}
.h-pm{display:inline-flex;align-items:center;gap:9px;padding:6px 14px 6px 6px;border-radius:999px;background:#ffffff08;border:1px solid var(--line);font-size:13.5px;font-weight:600;white-space:nowrap;color:#dfe7fb}
.h-pm .pi{width:28px;height:28px;border-radius:50%;font-size:16px}
.h-pm .pi img{width:20px;height:20px}

/* ---------- order ---------- */
.h-order{padding-top:clamp(48px,7vw,90px)}
.h-order .order-wrap{grid-template-columns:minmax(0,1fr) 340px;gap:24px}
.h-order .order-card{padding:clamp(18px,2.6vw,30px)}
.o-step{display:flex;align-items:center;gap:10px;margin:22px 0 12px;font:600 17px Fredoka,sans-serif;color:#fff}
.o-step:first-of-type{margin-top:4px}
.o-step span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#ffcf4a1f;border:1px solid #ffcf4a66;color:var(--gold);font-size:14px;flex:none}
.o-step em{font:400 13px Inter,sans-serif}
.h-order .amount-row{grid-template-columns:118px 1fr;gap:20px}
.h-order .pie-meter{width:118px;height:118px}
.h-order .meter-label b{font-size:24px}
.h-order input[type=range]{margin:14px 0 4px}
.h-order .quick{margin-top:10px}
.mtabs{display:inline-flex;gap:4px;padding:4px;background:#071230;border:1px solid var(--line);border-radius:12px;margin-bottom:12px}
.mtab{background:none;border:0;color:var(--muted);font:600 13.5px Inter,sans-serif;padding:7px 12px;border-radius:9px;cursor:pointer;transition:background .2s,color .2s}
.mtab.on{background:var(--panel2);color:#fff;box-shadow:inset 0 0 0 1px var(--line2)}
.h-order .method-grid{max-height:none;overflow:visible;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;padding:0}
.h-order .method{padding:10px 4px 9px;border-radius:12px;gap:5px}
.h-order .mi{height:26px;font-size:24px}
.h-order .mi img{width:26px;height:26px}
.h-order .grid2 label{margin-top:0}
.o-notes{margin-top:14px}
.o-notes summary{list-style:none;cursor:pointer;color:#c4d2f3;font-size:14px;font-weight:600;display:inline-flex;align-items:center;gap:8px;padding:4px 0}
.o-notes summary::-webkit-details-marker{display:none}
.o-notes summary i{font-size:12px;color:var(--gold);transition:transform .3s var(--ease)}
.o-notes[open] summary i{transform:rotate(45deg)}
.o-notes textarea{margin-top:8px}
.h-order .summary{margin-top:20px}
.h-order .fine i{color:var(--good);margin-right:4px}
.h-order .side-cards{gap:16px}
.h-order .mini-card{padding:22px}
.h-order .mini-card h3{font-size:19px}
.why-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.why-list li{display:flex;gap:12px;align-items:flex-start}
.why-list i{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#4b9dff1f;color:var(--glow);flex:none;font-size:15px}
.why-list span{font-size:14px;color:var(--muted);line-height:1.4}
.why-list b{display:block;color:#fff;font:600 15.5px Fredoka,sans-serif}
.mini-card.help{display:grid;grid-template-columns:56px 1fr;gap:4px 14px;align-items:center}
.mini-card.help img{width:56px;height:56px;border-radius:16px;background:#1d3a80}
.mini-card.help h3{margin:0;font-size:18px}
.mini-card.help p{margin:2px 0 0;font-size:14px}
.mini-card.help .btn{grid-column:1/-1;margin-top:12px}

/* ---------- how it works ---------- */
.h-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;position:relative;counter-reset:none}
.h-steps::before{content:"";position:absolute;left:12%;right:12%;top:62px;border-top:2px dashed #2f5bb0aa;z-index:0}
.h-steps li{position:relative;z-index:1;text-align:center;padding:0 10px}
.h-steps img{height:124px;width:auto;display:block;margin:0 auto 14px;filter:drop-shadow(0 12px 18px #0008);transition:transform .35s var(--ease)}
.h-steps li:hover img{transform:translateY(-6px) rotate(-4deg)}
.h-num{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(180deg,var(--glow),var(--blue2));font:700 15px Fredoka,sans-serif;box-shadow:0 6px 16px -4px var(--blue)}
.h-steps h3{font-size:22px;margin:10px 0 6px}
.h-steps p{margin:0 auto;color:var(--muted);max-width:280px;font-size:15px}
.h-feats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:48px}
.h-feats div{display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:16px 18px;border-radius:18px;background:#ffffff06;border:1px solid var(--line);transition:background .3s,transform .3s}
.h-feats div:hover{background:#ffffff0d;transform:translateY(-3px)}
.h-feats i{grid-row:1/3;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#4b9dff1a;color:var(--glow);font-size:19px}
.h-feats b{font:600 17px Fredoka,sans-serif}
.h-feats small{color:var(--muted);font-size:13.5px}

/* ---------- payments ---------- */
.h-pay-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:20px}
.h-pay-group{background:linear-gradient(180deg,var(--panel2),var(--panel));border-radius:22px;padding:22px;box-shadow:var(--shadow)}
.h-pay-group h3{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:20px}
.h-pay-group h3 i{color:var(--gold)}
.h-pay-group h3 span{margin-left:auto;font:600 13px Inter,sans-serif;color:var(--muted);background:#071230;border:1px solid var(--line);border-radius:999px;padding:2px 10px}
.h-pay-list{display:flex;flex-wrap:wrap;gap:8px}
.h-pay-list .h-pm{background:#071230;padding:6px 14px 6px 6px;transition:border-color .2s,transform .2s}
.h-pay-list .h-pm:hover{border-color:var(--line2);transform:translateY(-2px)}

/* ---------- guides ---------- */
.h-guides-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}
.h-guides-head h2{font-size:clamp(32px,4.2vw,48px);margin:14px 0 6px;line-height:1.05}
.h-guides-head p{color:var(--muted);margin:0}
.h-guide-row{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}

/* ---------- faq ---------- */
.h-faq{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(24px,4vw,56px);align-items:start}
.h-faq-side{position:sticky;top:110px}
.h-faq-side h2{font-size:clamp(32px,4.2vw,48px);margin:14px 0 10px;line-height:1.05}
.h-faq-side p{color:var(--muted);margin:0 0 20px;max-width:380px}
.h-faq-side img{display:block;width:170px;height:auto;margin-top:26px;filter:drop-shadow(0 14px 20px #0008)}
.h-faq .faq{max-width:none;margin:0}
.h-faq .faq summary{font-size:17px;padding:18px 22px;gap:16px}

/* ---------- final call to action ---------- */
.h-final{max-width:1240px;margin:0 auto;padding:20px clamp(16px,4vw,48px) 80px}
.h-final-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:28px;padding:28px 36px;border-radius:28px;background:radial-gradient(600px 300px at 10% 0%,#2f6fe055,transparent 70%),linear-gradient(135deg,#16337a,#0d1d4a);border:1px solid var(--line2);box-shadow:0 30px 70px -30px #000,0 0 50px #4b9dff22;position:relative;overflow:hidden}
.h-final-card img{width:150px;height:auto;margin:-10px 0 -36px;filter:drop-shadow(0 14px 22px #000a);animation:bob 3s ease-in-out infinite}
.h-final-card h2{margin:0 0 6px;font-size:clamp(28px,3.4vw,40px);line-height:1.05}
.h-final-card p{margin:0;color:#c4d2f3}
.h-final-card p b{color:var(--gold);font-family:Fredoka}
.h-final-btns{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}

/* ---------- footer ---------- */
.h-footer{margin-top:0;padding-top:48px}
.h-foot-grid{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:32px}
.h-foot-brand p{color:var(--muted);font-size:14px;max-width:340px;margin:14px 0 0}
.h-foot-grid h4{margin:6px 0 14px;font:600 15px Fredoka,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:#fff}
.h-foot-grid>div:not(.h-foot-brand){display:flex;flex-direction:column;gap:9px;align-items:flex-start}
.h-foot-grid a,.linkish{color:var(--muted);text-decoration:none;font-size:14.5px;background:none;border:0;padding:0;cursor:pointer;font-family:inherit;display:inline-flex;align-items:center;gap:8px}
.h-foot-grid a:hover,.linkish:hover{color:#fff}
.h-footer .disclaimer{border-top:1px solid var(--line);padding-top:20px;margin-top:36px}

/* ---------- tablet ---------- */
@media (max-width:1080px){
  .h-order .order-wrap{grid-template-columns:1fr}
  .h-order .side-cards{position:static;grid-template-columns:repeat(3,1fr);align-items:stretch}
  .h-feats{grid-template-columns:1fr 1fr}
  .h-final-card{grid-template-columns:auto 1fr}
  .h-final-btns{grid-column:1/-1;justify-content:flex-start}
  .h-foot-grid{grid-template-columns:1fr 1fr 1fr}
  .h-foot-brand{grid-column:1/-1}
}
@media (max-width:900px){
  .h-hero{grid-template-columns:1fr;text-align:center;min-height:0;padding-top:28px}
  .h-hero-copy{display:flex;flex-direction:column;align-items:center}
  .h-hero .lead{margin-inline:auto}
  .h-prices{width:100%;margin-inline:auto}
  .h-hero .cta-row,.h-trust{justify-content:center}
  .h-art{max-width:400px}
  .h-order .side-cards{grid-template-columns:1fr 1fr}
  .h-order .side-cards .help{grid-column:1/-1}
  .h-faq{grid-template-columns:1fr}
  .h-faq-side{position:static;text-align:center;display:flex;flex-direction:column;align-items:center}
  .h-faq-side img{display:none}
  .h-guide-row{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;margin:0 calc(-1 * clamp(16px,4vw,48px));padding:4px clamp(16px,4vw,48px) 14px;scrollbar-width:none}
  .h-guide-row::-webkit-scrollbar{display:none}
  .h-guide-row .post-card{flex:0 0 min(78%,340px);scroll-snap-align:start}
}

/* ---------- phones ---------- */
@media (max-width:640px){
  .section{padding-top:56px;padding-bottom:56px}
  .section-head{margin-bottom:26px}
  .section-head h2{font-size:34px}
  .h-hero h1{font-size:46px;margin:16px 0 12px}
  .h-hero .lead{font-size:16px}
  .h-prices{margin:22px 0 20px}
  .h-prices>div{padding:12px 10px;align-items:center}
  .h-prices b{font-size:22px}
  .h-prices small{font-size:11.5px}
  .h-hero .cta-row{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .h-hero .cta-row .btn{padding:14px 12px;font-size:17px}
  .h-hero .cta-row .btn:only-child{grid-column:1/-1}
  .h-trust{gap:6px 14px;font-size:13px;margin-top:20px}
  .h-art{max-width:300px;margin-top:6px}
  .h-float{padding:8px 11px;gap:8px;border-radius:13px}
  .h-float i{width:30px;height:30px;font-size:13px;border-radius:10px}
  .h-float b{font-size:15px}.h-float small{font-size:11px}
  .h-float.f1{left:-6%;top:-2%}.h-float.f2{right:-6%;bottom:6%}
  .h-strip{padding-top:6px}
  .h-strip-label{display:none}

  .h-order .order-card{padding:16px;border-radius:20px}
  .h-order .tabs{margin-bottom:14px}
  .h-order .amount-row{grid-template-columns:84px 1fr;gap:14px;justify-items:stretch}
  .h-order .pie-meter{width:84px;height:84px}
  .h-order .meter-label b{font-size:18px}
  .h-order .meter-label small{font-size:11px}
  .h-order .input-wrap.big input{font-size:26px}
  .h-order .quick{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .h-order .quick::-webkit-scrollbar{display:none}
  .h-order .quick button{flex:none}
  .mtabs{display:flex;width:100%}
  .mtab{flex:1;padding:8px 2px;font-size:12.5px;white-space:nowrap}
  .h-order .method-grid{grid-template-columns:repeat(4,1fr);gap:6px}
  .h-order .method{padding:8px 2px 7px;border-radius:11px}
  .h-order .mi{height:22px;font-size:20px}
  .h-order .mi img{width:22px;height:22px}
  .h-order .mn{font-size:10.5px;line-height:1.15}
  .h-order .grid2{gap:12px}
  .h-order .grid2 label{margin-top:0}
  .h-order .summary{flex-direction:row;align-items:flex-end;padding:14px}
  .h-order .sum-total{text-align:right}
  .h-order .sum-total b{font-size:32px}
  .h-order .sum-lines span{min-width:0}
  .h-order .sum-lines div{flex-direction:column;gap:0}
  .h-order .side-cards{grid-template-columns:1fr}
  .h-order .side-cards .why{display:none}

  .h-steps{grid-template-columns:1fr;gap:12px}
  .h-steps::before{left:43px;right:auto;top:30px;bottom:30px;border-top:0;border-left:2px dashed #2f5bb0aa}
  .h-steps li{display:grid;grid-template-columns:86px 1fr;gap:14px;align-items:center;text-align:left;padding:12px 14px;border-radius:18px;background:#ffffff06;border:1px solid var(--line)}
  .h-steps img{height:82px;margin:0 auto}
  .h-steps h3{font-size:19px;margin:6px 0 2px}
  .h-steps p{font-size:14px;margin:0}
  .h-num{width:24px;height:24px;font-size:13px}
  .h-feats{gap:10px;margin-top:22px}
  .h-feats div{grid-template-columns:1fr;text-align:left;padding:14px;row-gap:2px}
  .h-feats i{grid-row:auto;width:36px;height:36px;font-size:16px;margin-bottom:6px}
  .h-feats b{font-size:15.5px}.h-feats small{font-size:12.5px}

  .h-pay-group{padding:16px;border-radius:18px}
  .h-pay-group h3{font-size:18px;margin-bottom:12px}
  .h-pay-list{gap:6px}
  .h-pay-list .h-pm{font-size:12.5px;padding:4px 11px 4px 4px;gap:7px}
  .h-pay-list .h-pm .pi{width:24px;height:24px;font-size:14px}
  .h-pay-list .h-pm .pi img{width:17px;height:17px}

  .h-guides-head{flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:20px}
  .h-guides-head h2{font-size:34px}
  .h-faq .faq summary{font-size:16px;padding:16px 18px}
  .h-faq .faq p{padding:0 18px 16px;font-size:15px}

  .h-final{padding-bottom:56px}
  .h-final-card{grid-template-columns:1fr;text-align:center;padding:26px 20px 22px;gap:14px}
  .h-final-card img{width:110px;margin:-6px auto -4px}
  .h-final-btns{justify-content:center;display:grid;grid-template-columns:1fr 1fr}
  .h-final-btns .btn{padding:13px 10px;font-size:16px}

  .h-foot-grid{grid-template-columns:1fr 1fr;gap:26px 18px}
  .h-foot-grid>div:last-child{grid-column:1/-1}
}
@media (max-width:380px){
  .h-hero h1{font-size:40px}
  .h-prices b{font-size:19px}
  .h-order .method-grid{grid-template-columns:repeat(3,1fr)}
  .h-final-btns{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.h-strip-track{animation:none;flex-wrap:wrap;width:auto}.h-strip-track [aria-hidden]{display:none}}

/* accounts teaser */
.h-acc-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px}
.h-acc{display:grid;grid-template-columns:150px 1fr;grid-template-rows:auto auto;gap:4px 18px;align-items:center;padding:14px;border-radius:22px;text-decoration:none;color:#fff;background:linear-gradient(180deg,var(--panel2),var(--panel));box-shadow:var(--shadow);transition:transform .3s var(--ease),box-shadow .3s}
.h-acc:hover{transform:translateY(-4px);box-shadow:0 0 0 1px var(--blue),0 20px 40px -18px #4b9dff88}
.h-acc img{grid-row:1/3;width:150px;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:14px}
.h-acc span{display:grid;gap:4px;align-self:end}
.h-acc span b{font:600 18px Fredoka,sans-serif;line-height:1.2}
.h-acc span small{color:var(--muted);font-size:13px}
.h-acc em{font-style:normal;color:var(--muted);align-self:start}
.h-acc em b{font:700 24px Fredoka,sans-serif;color:var(--gold)}
@media (max-width:640px){.h-acc{grid-template-columns:110px 1fr;gap:2px 12px;padding:12px}.h-acc img{width:110px}.h-acc span b{font-size:16px}.h-acc em b{font-size:20px}}
